bashgid/web/protected/models/ArticleMaxForm.php

43 lines
835 B
PHP
Raw Permalink Normal View History

2015-07-02 08:37:15 +00:00
<?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',
);
}
}