classes/BearCMS/Internal/Data2/Comments.php
public function getList()
    {
        $list = Internal\Data::getList('bearcms/comments/thread/');
        $result = new \IvoPetkov\DataList();
        foreach ($list as $value) {
            $rawData = json_decode($value, true);
            $tempCollection = Internal\Data\Comments::createCommentsCollection($rawData['comments'], $rawData['id']);
            foreach ($tempCollection as $dataObject) {
                $result[] = $dataObject;
            }
        }
        return $result;
    }
public function getList()
    {
        $list = Internal\Data::getList('bearcms/comments/thread/');
        $result = new \IvoPetkov\DataList();
        foreach ($list as $value) {
            $rawData = json_decode($value, true);
            $tempCollection = Internal\Data\Comments::createCommentsCollection($rawData['comments'], $rawData['id']);
            foreach ($tempCollection as $dataObject) {
                $result[] = $dataObject;
            }
        }
        return $result;
    }
public function getList ( ) { $ list = Internal \ Data :: getList ( 'bearcms/comments/thread/' ) ; $ result = new \ IvoPetkov \ DataList ( ) ; foreach ( $ list as $ value ) { $ rawData = json_decode ( $ value , true ) ; $ tempCollection = Internal \ Data \ Comments :: createCommentsCollection ( $ rawData [ 'comments' ] , $ rawData [ 'id' ] ) ; foreach ( $ tempCollection as $ dataObject ) { $ result [ ] = $ dataObject ; } } return $ result ; }
Retrieves a list of all comments

@return \IvoPetkov\DataList|\BearCMS\Internal\Data2\Comment[] List containing all comments data
Retrieves a list of all comments