getDocumentList() public method

Return all documents with comment(s)
public getDocumentList ( ) : array
return array
コード例 #1
0
ファイル: CommentTest.php プロジェクト: gotcms/gotcms
 /**
  * Test
  *
  * @return void
  */
 public function testGetDocumentList()
 {
     $data = array('message' => 'test', 'username' => 'test', 'email' => '*****@*****.**');
     $this->object->add($data, $this->document->getId());
     $this->assertInternalType('array', $this->object->getDocumentList());
 }
コード例 #2
0
ファイル: IndexController.php プロジェクト: gotcms/gotcms
 /**
  * Index action, list all documents with comments
  *
  * @return array
  */
 public function indexAction()
 {
     $model = new Model\Comment();
     $documentList = $model->getDocumentList();
     return array('document_list' => $documentList);
 }