コード例 #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');
 }