Public Member Functions | |
tableName () | |
rules () | |
relations () | |
getExistUser () | |
attributeLabels () | |
implementFromSession () | |
unsetExistFields () | |
search () |
Static Public Member Functions | |
static | model ($className=__CLASS__) |
Protected Member Functions | |
afterFind () | |
beforeSave () |
Definition at line 29 of file TmpUserBasic.php.
TmpUserBasic::attributeLabels | ( | ) |
Reimplemented in TmpUser, and TmpUser.
Definition at line 177 of file TmpUserBasic.php.
References WebCustModule\t().
|
static |
Returns the static model of the specified AR class.
string | $className | active record class name. |
Reimplemented in TmpUser, and TmpUser.
Definition at line 36 of file TmpUserBasic.php.
TmpUserBasic::relations | ( | ) |
Reimplemented in TmpUser.
Definition at line 155 of file TmpUserBasic.php.
TmpUserBasic::rules | ( | ) |
protected function beforeSave() { if(parent::beforeSave()) {
Format dates based on the locale foreach($this->metadata->tableSchema->columns as $columnName => $column) { if ($column->dbType == 'date') { $this->$columnName = date('Y-m-d', CDateTimeParser::parse($this->$columnName, Yii::app()->locale->getDateFormat('short'))); } elseif ($column->dbType == 'datetime') { $this->$columnName = date('Y-m-d H:i:s', CDateTimeParser::parse($this->$columnName, Yii::app()->locale->getDateTimeFormat('short'))); } } return true; } else return false; } protected function afterFind() { Format dates based on the locale foreach($this->metadata->tableSchema->columns as $columnName => $column) { if (!strlen($this->$columnName)) continue;
if ($column->dbType == 'date') { $this->$columnName = Yii::app()->dateFormatter->formatDateTime( CDateTimeParser::parse( $this->$columnName, 'yyyy-MM-dd' ), 'short',null ); } elseif ($column->dbType == 'datetime' || $column->dbType == 'timestamp') { $this->$columnName = Yii::app()->dateFormatter->formatDateTime( CDateTimeParser::parse( $this->$columnName, 'yyyy-MM-dd hh:mm:ss' ), 'short','short' ); } } return parent::afterFind(); }
Reimplemented in TmpUser, and TmpUser.
Definition at line 132 of file TmpUserBasic.php.
TmpUserBasic::search | ( | ) |
Retrieves a list of models based on the current search/filter conditions.
Reimplemented in TmpUser, and TmpUser.
Definition at line 238 of file TmpUserBasic.php.
TmpUserBasic::tableName | ( | ) |
Reimplemented in TmpUser, and TmpUser.
Definition at line 43 of file TmpUserBasic.php.