示例#1
0
 public function __construct()
 {
     parent::__construct();
     $this->fields = array($this->idField, new Field(static::DESCRIPTION_FLD, TextType(), true), new Field(static::HEAD_FLD, StrType(100), true, 'Инициатор', array(Validate::IS_NUMERIC, Validate::IS_NOT_EMPTY)), new Field(static::OWNER_FLD, IntType(), false, 'Инициатор', array(Validate::IS_NUMERIC, Validate::IS_NOT_EMPTY)), new Field(static::TYPE_FLD, IntType(), true, 'Вид события', array(Validate::IS_NUMERIC, Validate::IS_NOT_EMPTY)), new Field(static::CREATION_DATE_FLD, TimestampType(), true, 'Время создания', array(Validate::IS_NOT_EMPTY)), new Field(static::DELETION_DATE_FLD, TimestampType()), new Field(static::UPDATED_DATE_FLD, TimestampType()), new Field(static::DUE_DATE_FLD, TimestampType(), true), new Field(static::PLACE_FLD, IntType(), true, 'Место', array(Validate::IS_NOT_EMPTY)));
     $this->dueDateKey = $this->ToPrfxNm(static::DUE_DATE_FLD);
     $this->createDateKey = $this->ToPrfxNm(static::CREATION_DATE_FLD);
 }
示例#2
0
 public function __construct()
 {
     parent::__construct();
     $this->fields = array($this->idField, new Field(static::LOGIN_FLD, StrType(50), true, 'Логин администратора', array(Validate::IS_NOT_EMPTY)), new Field(static::PASS_FLD, StrType(50), true, 'информация о преподавателе', array(Validate::IS_NOT_EMPTY)));
 }
示例#3
0
 public function __construct()
 {
     parent::__construct();
     $this->fields = array(new Field(static::TYPENAME_FLD, StrType(200), false));
 }
示例#4
0
 public function __construct()
 {
     parent::__construct();
     $this->fields = array($this->idField, new Field(static::USER_FLD, IntType(), true, '', array(Validate::IS_NOT_EMPTY)), new Field(static::SID_FLD, StrType(40), true, 'идентификатор сессии', array(Validate::IS_NOT_EMPTY)));
 }
示例#5
0
 public function __construct()
 {
     parent::__construct();
     $this->fields = array($this->idField, new Field(static::LOGIN_FLD, StrType(70), true, 'Логин', array(Validate::IS_NOT_EMPTY)), new Field(static::NAME_FLD, StrType(70), true, 'Имя', array(Validate::IS_NOT_EMPTY)), new Field(static::SURNAME_FLD, StrType(70), true), new Field(static::PHONE_FLD, StrType(30), true), new Field(static::ROOM_FLD, IntType(), true, 'Комната', array(Validate::IS_NOT_EMPTY)), new Field(static::DESCRIPTION_FLD, TextType(), true), new Field(static::PASS_FLD, StrType(80), true, 'Пароль', array(Validate::IS_NOT_EMPTY)), new Field(static::SALT_FLD, StrType(8), true, '', array(Validate::IS_NOT_EMPTY)), new Field(static::REGISTER_DATE_FLD, TimestampType(), true), new Field(static::LAST_UPDATE_FLD, TimestampType(), true), new Field(static::PROFILE_VIEWS_FLD, IntType(), true), new Field(static::PHOTO_FLD, IntType(), true));
     $this->profileFields = array($this->idField, $this->GetFieldByName(static::NAME_FLD), $this->GetFieldByName(static::SURNAME_FLD), $this->GetFieldByName(static::PHONE_FLD), $this->GetFieldByName(static::DESCRIPTION_FLD), $this->GetFieldByName(static::REGISTER_DATE_FLD), $this->GetFieldByName(static::LAST_UPDATE_FLD), $this->GetFieldByName(static::PROFILE_VIEWS_FLD));
 }
示例#6
0
 public function __construct()
 {
     parent::__construct();
     $this->fields = array($this->idField, new Field(static::NUMBER_FLD, StrType(100), true, 'Номер', array(Validate::IS_NOT_EMPTY)), new Field(static::LAST_UPDATE_FLD, TimestampType(), true), new Field(static::FLOOR_FLD, IntType(), true), new Field(static::POLYGON_FLD, StrType(500), true), new Field(static::TYPE_FLD, IntType(), true, 'Тип'), new Field(static::HOSTEL_FLD, IntType(), true, 'Общага'));
 }
示例#7
0
 public function __construct()
 {
     parent::__construct();
     $this->fields = array($this->idField, new Field(static::NUMBER_FLD, StrType(100), false));
 }