예제 #1
0
 public static function clear()
 {
     $metadata = self::$metadata;
     self::$metadata = array();
     return $metadata;
 }
예제 #2
0
 private function createStatement()
 {
     $stmt = Sabel_Db::createStatement($this->connectionName);
     $stmt->setMetadata(Sabel_Db_Metadata::getTableInfo($this->tableName, $this->connectionName));
     return $stmt;
 }
예제 #3
0
파일: Ibase.php 프로젝트: reoring/sabel
 public function testClose()
 {
     Sabel_Db_Metadata::clear();
     Sabel_Db_Connection::closeAll();
 }
예제 #4
0
 /**
  * @param string $mdlName
  *
  * @return void
  */
 protected function initialize($mdlName = null)
 {
     if ($mdlName === null) {
         $mdlName = get_class($this);
     }
     $this->modelName = $mdlName;
     if ($this->tableName === "") {
         $this->tableName = convert_to_tablename($mdlName);
     }
     $this->metadata = Sabel_Db_Metadata::getTableInfo($this->tableName, $this->connectionName);
     $this->metaCols = $this->metadata->getColumns();
 }