Example #1
0
 function init()
 {
     parent::init();
     $this->addField('email_global')->type('boolean')->caption('Enable Notifications');
     $this->addField('email_major_releases')->type('boolean')->caption('Notify on Major Releases');
     $this->addField('email_minor_releases')->type('boolean')->caption('Notify on Minor Releases');
     $this->addField('email_blog')->type('boolean')->caption('Notify on New Blog Post');
     $this->addField('email_survey')->type('boolean')->caption('Notify on New Surveys');
 }
Example #2
0
 function init()
 {
     parent::init();
     $this->addField('user_survey_id')->calculated(true);
     $this->addField('survey_is_invited')->calculated(true);
 }
Example #3
0
 function init()
 {
     parent::init();
     $this->setMasterField('is_email_confirmed', true);
 }
Example #4
0
 function init()
 {
     parent::init();
     $this->addField('is_admin')->type('boolean');
     $this->setMasterField('is_admin', true);
 }