| Server IP : 213.186.33.2 / Your IP : 216.73.216.39 Web Server : Apache System : Linux webm005.cluster102.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : symetry ( 21728) PHP Version : 8.2.31 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/s/y/m/symetry/www/ARCHIVES/application/models/ |
Upload File : |
<?php
class References extends Zend_Db_Table
{
protected $_name = 'references';
protected $_primary = 'ref_id'; // set the primary key. By default, the primary key is id. Not quite easy for database design
/*public function update(&$data, $where) {
if (!isset($data['updated_on'])) {
$data['updated_on'] = date('Y-m-d H:i:s');
}
return parent::update($data, $where);
}
public function findByMail($mail) {
$where = $this->_quoteInto('mail = ?', $mail);
return $this->fetchRow($where);
}
public function getByZipcode($zipcode) {
$where = $this->_quoteInto('zipcode = ?', $zipcode);
return $this->fetchAll($where);
}
function updateById(&$data, $id) {
$where = $this->_quoteInto('id = ?', $id);
return $this->update($data, $where);
}
private function _quoteInto($mask, $value) {
return $this->getAdapter()->quoteInto($mask, $value);
}
*/
}