예제 #1
0
파일: Column.php 프로젝트: andho/simdal
 public function __construct(SimDAL_Mapper_Entity $entity, $property, $fieldname, $datatype, $primarykey = false, $autoincrement = false, $alias = null)
 {
     $this->_entity = $entity;
     $this->_class = $entity->getClass();
     $this->_table = $entity->getTable();
     $this->_schema = $this->getSchema();
     $this->_property = $property;
     $this->_fieldName = $fieldname;
     $this->_dataType = $datatype;
     $this->_primaryKey = $primarykey;
     $this->_autoIncrement = $autoincrement;
     $this->_alias = $alias;
 }
예제 #2
0
 protected static function _generateProxyClass(SimDAL_Mapper_Entity $mapping, $class = null)
 {
     if (is_null($class)) {
         $class = $mapping->getClass();
     }
     $proxy_class = $class . 'SimDALProxy';
     $class = 'class ' . $proxy_class . ' extends ' . $class . ' implements SimDAL_ProxyInterface {' . PHP_EOL . PHP_EOL;
     return $class;
 }
예제 #3
0
파일: Query.php 프로젝트: andho/simdal
 public function getClass()
 {
     return $this->_from->getClass();
 }