コード例 #1
0
ファイル: Wscomplaint.php プロジェクト: knatorski/SMS
 public function getActions()
 {
     foreach ($this->_rowActions as $key => $action) {
         if (!empty($this->send_at)) {
             if ($action['action'] == 'send') {
                 unset($this->_rowActions[$key]);
             }
         }
     }
     return parent::getActions();
 }
コード例 #2
0
ファイル: WsServiceSet.php プロジェクト: knatorski/SMS
 public function getActions()
 {
     foreach ($this->_rowActions as $key => $action) {
         if ($action['action'] == 'publishset' && ($this->status == Logic_Ws_ServiceSet_ServiceSet::STATE_ACTIVE || $this->status == Logic_Ws_ServiceSet_ServiceSet::STATE_INACTIVE)) {
             unset($this->_rowActions[$key]);
         }
         if (($action['action'] == 'deleteset' || $action['action'] == 'editset') && $this->ghost) {
             unset($this->_rowActions[$key]);
         }
     }
     return parent::getActions();
 }
コード例 #3
0
ファイル: Recipient.php プロジェクト: knatorski/SMS
 public function getActions()
 {
     foreach ($this->_rowActions as $key => $action) {
         if (($action['controller'] == 'smswhitelist' || $action['controller'] == 'mailwhitelist') && $this->white_list == 'tak') {
             unset($this->_rowActions[$key]);
         }
         if (($action['controller'] == 'smsblacklist' || $action['controller'] == 'mailblacklist') && $this->black_list == 'tak') {
             unset($this->_rowActions[$key]);
         }
     }
     return parent::getActions();
 }
コード例 #4
0
ファイル: Wsservice.php プロジェクト: knatorski/SMS
 /**
  * 
  * @param array $actions
  * @param type $ignore
  * @return type
  */
 public function getActions($actions = null, $ignore = false)
 {
     $this->_rowActions = array_merge($this->_rowActions, $this->_extendRowActions);
     return parent::getActions($actions, $ignore);
 }