예제 #1
0
파일: tag.php 프로젝트: Romua1d/core
 /**
  * Transform a database columnname to a property
  *
  * @param string $columnName the name of the column
  * @return string the property name
  * @todo migrate existing database columns to the correct names
  * to be able to drop this direct mapping
  */
 public function columnToProperty($columnName)
 {
     if ($columnName === 'category') {
         return 'name';
     } elseif ($columnName === 'uid') {
         return 'owner';
     } else {
         return parent::columnToProperty($columnName);
     }
 }
예제 #2
0
 /**
  * Transform a database column name to a property
  * @param string $columnName the name of the column
  * @return string the property name
  */
 public function columnToProperty($columnName)
 {
     if ($columnName === 'fileid') {
         $property = 'fileId';
     } else {
         $property = parent::columnToProperty($columnName);
     }
     return $property;
 }