Пример #1
0
 public function init()
 {
     parent::init();
     $this->on(ActiveRecord::EVENT_BEFORE_INSERT, [$this, 'attachImageEvent']);
     $this->on(ActiveRecord::EVENT_BEFORE_INSERT, [$this, 'updateDefaultsEvent']);
     $this->on(ActiveRecord::EVENT_BEFORE_UPDATE, [$this, 'updateDefaultsEvent']);
     $this->on(ActiveRecord::EVENT_AFTER_INSERT, [$this, 'updateDefaultsPostEvent']);
     $this->on(ActiveRecord::EVENT_AFTER_UPDATE, [$this, 'updateDefaultsPostEvent']);
     $this->on(ActiveRecord::EVENT_BEFORE_DELETE, [$this, 'detachImageEvent']);
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct();
 }
Пример #3
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), ['id' => __('ID'), 'type' => __('Type'), 'status' => __('Status'), 'name' => __('Name'), 'firstname' => __('First name'), 'lastname' => __('Last name'), 'contact' => __('Contact person'), 'email' => __('Email'), 'phone' => __('Phone'), 'country_id' => __('Country'), 'state_id' => __('State'), 'state' => __('State'), 'city' => __('City'), 'address' => __('Address'), 'zipcode' => __('Zip/postal code'), 'parent_id' => __('Member'), 'volunteer' => __('Volunteer'), 'candidate' => __('Candidate'), 'notes' => __('Notes')]);
 }
Пример #4
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), ['id' => __('ID'), 'name' => __('Name'), 'email' => __('E-mail'), 'password' => __('Password'), 'status' => __('Status'), 'country_id' => __('Country'), 'state_id' => __('State'), 'state' => __('State'), 'city' => __('City'), 'address' => __('Address')]);
 }
Пример #5
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), ['id' => __('ID'), 'name' => __('Name'), 'content' => __('Content'), 'wrapper' => __('Wrapper'), 'wrapper_enabled' => __('Enable wrapper'), 'orientation_landscape' => __('Landscape orientation'), 'margin_top' => __('Margin top (mm)'), 'margin_bottom' => __('Margin bottom (mm)'), 'margin_left' => __('Margin left (mm)'), 'margin_right' => __('Margin right (mm)'), 'items_per_page' => __('Items per page'), 'status' => __('Status'), 'format' => __('Format')]);
 }
Пример #6
0
 /**
  * @inheritdoc
  */
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), ['id' => __('ID'), 'partner_id' => __('Partner'), 'partner' => __('Partner'), 'user_id' => __('User'), 'user' => __('User'), 'timestamp' => __('Date'), 'notes' => __('Notes')]);
 }
Пример #7
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), ['id' => __('ID'), 'subject' => __('Subject'), 'body' => __('Body')]);
 }
Пример #8
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), ['id' => __('ID'), 'name' => __('Name'), 'from_name' => __('From name'), 'from_email' => __('From email'), 'reply_to' => __('Reply to'), 'status' => __('Status')]);
 }
Пример #9
0
 public function init()
 {
     parent::init();
     $this->on(ActiveRecord::EVENT_BEFORE_INSERT, [$this, 'attachEvent']);
     $this->on(ActiveRecord::EVENT_BEFORE_DELETE, [$this, 'detachEvent']);
 }