public static function getMultioptions()
    {
        $rows = (new Orm\CmsMailServerQuery)
            ->whereActive()->equals(1)
            ->find();
        $pairs = [];
        foreach ($rows as $row) {
            $pairs[$row->id] = $row->address . ':' . $row->port . ' (' . $row->username . ')';
        }
        return $pairs;
    }
public static function getMultioptions()
    {
        $rows = (new Orm\CmsMailServerQuery)
            ->whereActive()->equals(1)
            ->find();
        $pairs = [];
        foreach ($rows as $row) {
            $pairs[$row->id] = $row->address . ':' . $row->port . ' (' . $row->username . ')';
        }
        return $pairs;
    }
public static function getMultioptions ( ) { $ rows = ( new Orm \ CmsMailServerQuery ) -> whereActive ( ) -> equals ( 1 ) -> find ( ) ; $ pairs = [ ] ; foreach ( $ rows as $ row ) { $ pairs [ $ row -> id ] = $ row -> address . ':' . $ row -> port . ' (' . $ row -> username . ')' ; } return $ pairs ; }
Pobiera aktywne serwery do listy
@return array lista
Pobiera aktywne serwery do listy