Exemplo n.º 1
0
Arquivo: Email.php Projeto: 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']);
 }
Exemplo n.º 2
0
Arquivo: Phone.php Projeto: xepan/base
 function init()
 {
     parent::init();
     $this->getElement('head')->enum(['Official', 'Personal', 'Mobile']);
     $this->addCondition('type', 'Phone');
 }
Exemplo n.º 3
0
Arquivo: Event.php Projeto: xepan/base
 function init()
 {
     parent::init();
     $this->getElement('head')->enum(['DOB', 'Anniversary']);
     $this->addCondition('type', 'Event');
 }
Exemplo n.º 4
0
Arquivo: IM.php Projeto: xepan/base
 function init()
 {
     parent::init();
     $this->getElement('head')->enum(['Skype', 'Yahoo', 'ICM', 'WhatsApp']);
     $this->addCondition('type', 'IM');
 }
Exemplo n.º 5
0
 function init()
 {
     parent::init();
     $this->getElement('head')->enum(['Father', 'Mother', 'Other']);
     $this->addCondition('type', 'Relation');
 }