Ejemplo n.º 1
0
Archivo: Image.php Proyecto: vsguts/crm
 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']);
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
 }
Ejemplo n.º 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')]);
 }
Ejemplo n.º 4
0
Archivo: User.php Proyecto: vsguts/crm
 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')]);
 }
Ejemplo n.º 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')]);
 }
Ejemplo n.º 6
0
Archivo: Visit.php Proyecto: vsguts/crm
 /**
  * @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')]);
 }
Ejemplo n.º 7
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), ['id' => __('ID'), 'subject' => __('Subject'), 'body' => __('Body')]);
 }
Ejemplo n.º 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')]);
 }
Ejemplo n.º 9
0
 public function init()
 {
     parent::init();
     $this->on(ActiveRecord::EVENT_BEFORE_INSERT, [$this, 'attachEvent']);
     $this->on(ActiveRecord::EVENT_BEFORE_DELETE, [$this, 'detachEvent']);
 }