Beispiel #1
0
 /**
  * Gets the definition of a set of items.
  *
  * @param array $iids item identifiers for which to retrieve definitions
  * @param array $datatype optional - the set of data types to filter 
  * 
  * public function items_getInfo($iids, $datatype = null)
  */
 public function execute()
 {
     $items = Api_Bo_Items::getInfo($this->app_id, $this->iids, $this->datatype);
     $retVal = array();
     if (count($items) > 0) {
         $retVal['item'] = array();
         foreach ($items as $item) {
             $retVal['item'][] = array('iid' => $item['item_id'], 'url' => $item['item_url'], 'refurl' => $item['item_refurl'], 'datatype' => $item['item_data_type']);
         }
     }
     return $retVal;
 }