PATH:
home
/
letacommog
/
letaweb
/
admin
/
models
/
mainsite_models
/
forms
<?php class PageInstallationForm extends CFormModel { public $id; public $page_id; public $user_id; public $is_complete; public $step; public $date_added; public $date_modified; public $is_active; public function rules() { return array( array('id', 'numerical'), array('page_id,user_id', 'required','on' => 'create'), array('id,page_id,step, is_complete,date_added,user_id,date_modified,is_active', 'safe'), ); } public function save($item = null) { if ($this->validate()) { $now = date('Y-m-d H:i:s'); if ($this->scenario === 'create' || !isset($this->id)) { $lang = new Page_Installation(); $lang->date_added = $now; $lang->user_id = Yii::app()->user->id; $lang->page_id = $this->page_id; } else { $lang = Page_Installation::model()->findByPk($this->id); } $lang->step = $this->step; $lang->is_active = $this->is_active; $lang->is_complete = $this->is_complete; $lang->date_modified = $now; $lang->save(); return $lang; } else { return false; } } }
[+]
..
[-] PageCreationForm.php
[edit]
[-] InstallForm.php
[edit]
[-] ForgotPasswordForm.php
[edit]
[-] LoginForm.php
[edit]
[-] SignupForm.php
[edit]
[-] RecoverPasswordForm.php
[edit]
[-] ResentActiveMailForm.php
[edit]
[-] PageInstallationForm.php
[edit]