PATH:
home
/
letacommog
/
letaweb
/
protected
/
modules
/
profile
/
models
<?php class DeletePageForm extends CFormModel { public $id; public $password; public $captcha_code; /** * @return array customized attribute labels (name=>label) */ public function attributeLabels() { return array( 'password' => 'Password', ); } public function rules() { return array( array('password', 'required'), array('password', 'application.validators.ConfirmPasswordValidator'), array('password', 'length', 'min' => 6), array('captcha_code', 'application.extensions.recaptcha.EReCaptchaValidator', 'privateKey' => Yii::app()->params['recaptcha_private_key'], ), array('id, captcha_code, password', 'safe'), ); } public function save($item = null) { if ($this->validate()) { if (isset($this->id)) { $t = Site::model()->findByPk($this->id); $id = $t->id; DbMigration::removeData($t); if ($t->delete()) { } return true; } } else { return false; } } }
[+]
..
[-] ResetPassForm.php
[edit]
[-] DeletePage1Form.php
[edit]
[-] PageForm.php
[edit]
[-] DeletePageForm.php
[edit]
[-] ChangeDomainForm.php
[edit]
[-] UserForm.php
[edit]
[-] ChangeSubDomainForm.php
[edit]