src/Kunstmaan/NodeBundle/Helper/URLHelper.php
private function getMediaMap()
    {
        if (is_null($this->mediaMap)) {
            $sql = 'SELECT id, url FROM kuma_media';
            $stmt = $this->em->getConnection()->prepare($sql);
            $stmt->execute();
            $this->mediaMap = $stmt->fetchAll();
        }

        return $this->mediaMap;
    }
private function getMediaMap()
    {
        if (is_null($this->mediaMap)) {
            $sql = 'SELECT id, url FROM kuma_media';
            $stmt = $this->em->getConnection()->prepare($sql);
            $stmt->execute();
            $this->mediaMap = $stmt->fetchAll();
        }

        return $this->mediaMap;
    }
private function getMediaMap ( ) { if ( is_null ( $ this -> mediaMap ) ) { $ sql = 'SELECT id, url FROM kuma_media' ; $ stmt = $ this -> em -> getConnection ( ) -> prepare ( $ sql ) ; $ stmt -> execute ( ) ; $ this -> mediaMap = $ stmt -> fetchAll ( ) ; } return $ this -> mediaMap ; }
Get a map of all media items. Only called once for caching.

@return array|null

@throws \Doctrine\DBAL\DBALException
Get a map of all media items . Only called once for caching .