public static function getUniqueObjects()
    {
        $all = (new Orm\CmsStatDateQuery)
            ->whereHour()->equals(null)
            ->andFieldDay()->equals(null)
            ->andFieldMonth()->equals(null)
            ->andFieldObjectId()->equals(null)
            ->orderAscObject()
            ->find();
        $objects = [];
        foreach ($all as $object) {
            if (!isset($objects[$object->object])) {
                $objects[$object->object] = $object->object;
            }
        }
        return $objects;
    }
public static function getUniqueObjects()
    {
        $all = (new Orm\CmsStatDateQuery)
            ->whereHour()->equals(null)
            ->andFieldDay()->equals(null)
            ->andFieldMonth()->equals(null)
            ->andFieldObjectId()->equals(null)
            ->orderAscObject()
            ->find();
        $objects = [];
        foreach ($all as $object) {
            if (!isset($objects[$object->object])) {
                $objects[$object->object] = $object->object;
            }
        }
        return $objects;
    }
public static function getUniqueObjects ( ) { $ all = ( new Orm \ CmsStatDateQuery ) -> whereHour ( ) -> equals ( null ) -> andFieldDay ( ) -> equals ( null ) -> andFieldMonth ( ) -> equals ( null ) -> andFieldObjectId ( ) -> equals ( null ) -> orderAscObject ( ) -> find ( ) ; $ objects = [ ] ; foreach ( $ all as $ object ) { if ( ! isset ( $ objects [ $ object -> object ] ) ) { $ objects [ $ object -> object ] = $ object -> object ; } } return $ objects ; }
Pobiera unikalne obiekty
@return array
Pobiera unikalne obiekty