Beispiel #1
0
 /**
  * Sets the definition of an item.
  *
  * @param string $iid the identifier of the item
  * @param string $url the URL that refers directly to the item
  * @param string $refurl the URL of the page where the user can get information on the item
  * @param int $datatype optional - the type of the item, otherwise the default type
  */
 public function execute()
 {
     $ret = Api_Bo_Items::setInfo($this->aid, $this->iid, $this->url, $this->refurl, $this->datatype);
     $response = array();
     $response['result'] = $ret ? '1' : '0';
     return $response;
 }