Beispiel #1
0
 /**
  * Define order actions
  *
  * @param \XLite\Model\Order $entity Order
  *
  * @return array
  */
 protected function defineOrderActions(\XLite\Model\Order $entity)
 {
     $list = array();
     foreach ($entity->getAllowedActions() as $action) {
         $list[] = array(static::ACTION_ACTION => $action);
     }
     return $list;
 }
 /**
  * {@inheritDoc}
  */
 public function getAllowedActions()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAllowedActions', array());
     return parent::getAllowedActions();
 }