Exemple #1
0
 /**
  * Sets the unpublish date
  * @param	integer	The node id
  * @param	integer	The timestamp for unpublish
  *
  * @return	boolean
  */
 public function setUnPublishDate($nodeid, $dateto = false)
 {
     if (!intval($nodeid)) {
         throw new Exception('invalid_node_id');
     }
     if (!vB::getUserContext()->getChannelPermission('forumpermissions2', 'canpublish', $nodeid)) {
         throw new Exception('no_publish_permissions');
     }
     return $this->library->setUnPublishDate($nodeid, $dateto);
 }