Ejemplo n.º 1
0
 /**
  * Initialize the table name value		 
  */
 protected function initTableName()
 {
     // Is there a table property set on the Model itself
     if ($table = $this->class->getStaticPropertyValue('table', null)) {
         // Store it
         $this->table = $table;
     } else {
         // Tableize classname
         $this->table = StringUtil::tableize($this->className);
     }
     // Was there a db-name specified in the model?
     if ($db = $this->class->getStaticPropertyValue('database', null)) {
         $this->database = $db;
     } else {
         $this->database = null;
     }
 }