mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
39 lines
905 B
PHP
39 lines
905 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.invite
|
|
* @since 2.0
|
|
*/
|
|
class ModuleInvite_EntityCode extends EntityORM
|
|
{
|
|
protected function beforeSave()
|
|
{
|
|
if ($bResult = parent::beforeSave()) {
|
|
if ($this->_isNew()) {
|
|
$this->setDateCreate(date("Y-m-d H:i:s"));
|
|
}
|
|
}
|
|
return $bResult;
|
|
}
|
|
} |