Пример #1
0
 /** Set the node options
  *
  * 	@param	mixed	options- can be an integer or an array
  *
  * 	@return	either 1 or an error message.
  **/
 public function setNodeOptions($nodeid, $options = false)
 {
     if (empty($nodeid) or !intval($nodeid) or $options === false) {
         throw new vB_Exception_Api('invalid_request');
     }
     if (!vB::getUserContext()->getChannelPermission('forumpermissions2', 'canconfigchannel', $nodeid)) {
         throw new vB_Exception_Api('no_permission');
     }
     return $this->library->setNodeOptions($nodeid, $options);
 }