示例#1
0
 /**
  * Return content action(s) which can be performed on object containing
  * the current datatype. Return format is array of arrays with key 'name'
  * and 'action'. 'action' can be mapped to url in datatype.ini
  *
  * @param eZContentClassAttribute $classAttribute
  * @return array
  */
 function contentActionList($classAttribute)
 {
     $actionList = parent::contentActionList($classAttribute);
     $actionList[] = array('name' => ezpI18n::tr('kernel/classes/datatypes', 'Add to basket'), 'action' => 'ActionAddToBasket');
     $actionList[] = array('name' => ezpI18n::tr('kernel/classes/datatypes', 'Add to wish list'), 'action' => 'ActionAddToWishList');
     return $actionList;
 }