Esempio n. 1
0
 /**
  *	Gets the content info for a list of nodes
  *	@param array array of node ids
  *	@param 	mixed	array of options.
  *						Options flags:
  *							showVm => appends visitor message node info.
  *							Such as isVisitorMessage flag indicating if node is visitor message and vm_userInfo from the user the visitor message was posted for.
  *						withParent => appends information from the parent. This info will append the 'parentConversation' info if the node is a comment.
  *
  *	@return array array of content records -- preserves the original keys
  **/
 public function getFullContentforNodes($nodeList)
 {
     if (empty($nodeList)) {
         return array();
     }
     $content = $this->library->getFullContentforNodes($nodeList);
     $content = $this->validateNodeList($content);
     foreach ($content as $key => $node) {
         if (!$node['content']['moderatorperms']['canviewips']) {
             $content[$key]['ipaddress'] = '';
             $content[$key]['content']['ipaddress'] = '';
         }
     }
     return $content;
 }