Show Sector.php syntax highlighted
<?php
class Sector extends Parth_Db_Row {
protected $data = array(
'id' => null,
'coord' => null,
'x' => null,
'y' => null
);
public function __construct($fields=null, $dao=null) {
parent::__construct($fields, $dao);
$config = Zend::registry('config');
$this->tableName = $config->db->prefix . '_' . strtolower(__CLASS__);
$this->className = __CLASS__;
$this->primaryKey = 'id';
}
}
See more files for this project here