web access very cool

This commit is contained in:
vladislav.khorev committed 2015-07-02 08:37:15 +00:00
1 parent 760ddd06ee
commit 482fb1edc4
51 files changed
+1780 -350

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
<?php
class ArticleMaxForm extends CFormModel
{
public $name;
public $titleRu;
public $titleEn;
public $titleZh;
public $contentRu;
public $contentEn;
public $contentZh;
public $geoLat;
public $geoLon;
public $externalLink;
/**
* Declares the validation rules.
* The rules state that username and password are required,
* and password needs to be authenticated.
*/
public function rules()
{
return array(
array('titleEn, titleZh, contentEn, contentZh, externalLink','safe'),
array('geoLat, geoLon', 'numerical'),
array('name, titleRu, contentRu', 'required'),
);
}
/**
* Declares attribute labels.
*/
public function attributeLabels()
{
return array(
//'rememberMe'=>'Remember me next time',
);
}
}