getDocumentList() public method

Return all documents with comment(s)
public getDocumentList ( ) : array
return array
Beispiel #1
0
 /**
  * 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());
 }
Beispiel #2
0
 /**
  * Index action, list all documents with comments
  *
  * @return array
  */
 public function indexAction()
 {
     $model = new Model\Comment();
     $documentList = $model->getDocumentList();
     return array('document_list' => $documentList);
 }