mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
47 lines
1,019 B
PHP
47 lines
1,019 B
PHP
<?php
|
||
/*
|
||
* LiveStreet CMS
|
||
* Copyright © 2013 OOO "ЛС-СОФТ"
|
||
*
|
||
* ------------------------------------------------------
|
||
*
|
||
* Official site: www.livestreetcms.com
|
||
* Contact e-mail: office@livestreetcms.com
|
||
*
|
||
* GNU General Public License, version 2:
|
||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||
*
|
||
* ------------------------------------------------------
|
||
*
|
||
* @link http://www.livestreetcms.com
|
||
* @copyright 2013 OOO "ЛС-СОФТ"
|
||
* @author Maxim Mzhelskiy <rus.engine@gmail.com>
|
||
*
|
||
*/
|
||
|
||
/**
|
||
* Сущность связи категории с объектами
|
||
*
|
||
* @package application.modules.category
|
||
* @since 2.0
|
||
*/
|
||
class ModuleCategory_EntityTarget extends EntityORM {
|
||
|
||
protected $aRelations=array(
|
||
|
||
);
|
||
|
||
/**
|
||
* Выполняется перед сохранением
|
||
*
|
||
* @return bool
|
||
*/
|
||
protected function beforeSave() {
|
||
if ($bResult=parent::beforeSave()) {
|
||
if ($this->_isNew()) {
|
||
$this->setDateCreate(date("Y-m-d H:i:s"));
|
||
}
|
||
}
|
||
return $bResult;
|
||
}
|
||
} |