예제 #1
0
파일: Email.php 프로젝트: xepan/base
 function init()
 {
     parent::init();
     $this->getElement('head')->enum(['Official', 'Personal']);
     $this->addCondition('type', 'Email');
     $this->is(['value|unique_in_epan|to_trim|required|email']);
 }
예제 #2
0
파일: Phone.php 프로젝트: xepan/base
 function init()
 {
     parent::init();
     $this->getElement('head')->enum(['Official', 'Personal', 'Mobile']);
     $this->addCondition('type', 'Phone');
 }
예제 #3
0
파일: Event.php 프로젝트: xepan/base
 function init()
 {
     parent::init();
     $this->getElement('head')->enum(['DOB', 'Anniversary']);
     $this->addCondition('type', 'Event');
 }
예제 #4
0
파일: IM.php 프로젝트: xepan/base
 function init()
 {
     parent::init();
     $this->getElement('head')->enum(['Skype', 'Yahoo', 'ICM', 'WhatsApp']);
     $this->addCondition('type', 'IM');
 }
예제 #5
0
파일: Relation.php 프로젝트: xepan/base
 function init()
 {
     parent::init();
     $this->getElement('head')->enum(['Father', 'Mother', 'Other']);
     $this->addCondition('type', 'Relation');
 }