concrete/src/Conversation/Editor/Editor.php
public static function getList($pkgID = null)
    {
        $db = Database::connection();
        $queryBuilder = $db->createQueryBuilder()
            ->select('e.*')
            ->from('ConversationEditors', 'e')
            ->orderBy('cnvEditorHandle', 'asc');
        if ($pkgID !== null) {
            $queryBuilder->andWhere('e.pkgID = :pkgID')->setParameter('pkgID', $pkgID);
        }

        $cnvEditors = $db->fetchAll($queryBuilder->getSQL(), $queryBuilder->getParameters());
        $editors = array();
        foreach ($cnvEditors as $editorRecord) {
            $cnvEditor = static::createFromRecord($editorRecord);
            $editors[] = $cnvEditor;
        }

        return $editors;
    }
public static function getList($pkgID = null)
    {
        $db = Database::connection();
        $queryBuilder = $db->createQueryBuilder()
            ->select('e.*')
            ->from('ConversationEditors', 'e')
            ->orderBy('cnvEditorHandle', 'asc');
        if ($pkgID !== null) {
            $queryBuilder->andWhere('e.pkgID = :pkgID')->setParameter('pkgID', $pkgID);
        }

        $cnvEditors = $db->fetchAll($queryBuilder->getSQL(), $queryBuilder->getParameters());
        $editors = array();
        foreach ($cnvEditors as $editorRecord) {
            $cnvEditor = static::createFromRecord($editorRecord);
            $editors[] = $cnvEditor;
        }

        return $editors;
    }
public static function getList ( $ pkgID = null ) { $ db = Database :: connection ( ) ; $ queryBuilder = $ db -> createQueryBuilder ( ) -> select ( 'e.*' ) -> from ( 'ConversationEditors' , 'e' ) -> orderBy ( 'cnvEditorHandle' , 'asc' ) ; if ( $ pkgID !== null ) { $ queryBuilder -> andWhere ( 'e.pkgID = :pkgID' ) -> setParameter ( 'pkgID' , $ pkgID ) ; } $ cnvEditors = $ db -> fetchAll ( $ queryBuilder -> getSQL ( ) , $ queryBuilder -> getParameters ( ) ) ; $ editors = array ( ) ; foreach ( $ cnvEditors as $ editorRecord ) { $ cnvEditor = static :: createFromRecord ( $ editorRecord ) ; $ editors [ ] = $ cnvEditor ; } return $ editors ; }
Returns an array of all Editor Objects.

@param null $pkgID An optional filter for Package ID

@return Editor[]
Returns an array of all Editor Objects .