Returns the contents of storage. Behavior is undefined when storage is empty.

@return mixed
342023
public function read()
    {
        $identity = $this->identity;

        if (null === $identity) {
            $identity = parent::read();

            $this->identity = $identity;
        }

        return $identity;
    }
695294
public function getValue()
    {
        return $this->storage->getValue($this->name, $this->defaultValue, $this->type);
    }
231415
function storage()
	{
		if($this->storage)
			return $this->storage;

		$storage_class = $this->storage_engine();

		if($storage_class_name = $storage_class)
			return $this->storage = new $storage_class_name($this);

		bors_throw('Undefined storage engine for '.$this);
	}
640163
public function getContents()
    {
        $contents = file_get_contents($this->getPath());

        foreach ($this->getReplaces() as $search => $replace) {
            $contents = str_replace('$'.strtoupper($search).'$', $replace, $contents);
        }

        return $contents;
    }
1067916
public function contents()
    {
        $files = array();

        for ($i=0; $i < $this->zip->numFiles; $i++) {
            $details = $this->zip->statIndex($i);
            $files[$details['name']] = $details;
        }

        return $files;
    }
322018
protected function getStorage()
    {
        if (! $this->storage) {
            $storage = $this->getServiceLocator()->get(Storage::SERVICE_ID);
            if (! $storage instanceof PaginatedStorage) {
                throw new StorageException(__('The storage service provided to store the diagnostic results must be upgraded to support reads!'));
            }
            $this->storage = $storage;
        }
        return $this->storage;
    }
786479
public function getStorage()
    {
        if (null === $this->storage) {
            $this->setStorage(new Session(get_called_class()));
        }

        return $this->storage;
    }
1014876
public function getContent() {

        $size = $this->getSize();

        if($size > 0) {

            $pos = $this->ftell();

            $this->fseek(0);
            $return = $this->fread($size);
            $this->fseek($pos);

            return $return;
        }

        return '';
    }
442106
public function getData()
    {
        if (!$this->data && $this->getLocation()) {
            $this->data = file_get_contents($this->getLocation());
        }

        return $this->data;
    }
897897
public function getContents()
    {
        if(!$this->isReady())
            return;

        ob_start();

        extract($this->callbackResolve($this->data));

        require $this->path;

        return ob_get_clean();
    }
154981
protected function getStorage()
    {
        if (null === $this->storage) {
            $this->storage = $this->get('sulu_media.storage');
        }

        return $this->storage;
    }
736772
public function getContent() {

		if(false !== $this -> file -> getExists()) {

			$this -> refresh();

			if(false === $this -> file -> getReadable()) {
				trigger_error(sprintf('File "%s" is not readable', $this -> file -> getBasepath()), E_USER_ERROR);
			}
			
			return file_get_contents($this -> file -> getBasepath());
		}
	}
1107658
public function info()
    {
        if (!$this->info) {
            $this->info = new StorageInfo(array(
                'name' => $this->query,
                'type' => 'SQL Query',
                'count' => count($this->reader()),
            ));
        }

        return $this->info;
    }
1149947
public function getContent()
    {
        if (empty($this->content)) {
            $requestBody = file_get_contents('php://input');
            if (strlen($requestBody) > 0) {
                $this->content = $requestBody;
            }
        }

        return $this->content;
    }
1213084
function content()
    {
        if ( $this->Content === null )
        {
            $dataType = $this->dataType();
            $this->Content = $dataType->classAttributeContent( $this );
        }

        return $this->Content;
    }
365311
public function getErrorContent()
    {
        if ($this->getErrorFile() && file_exists($this->getErrorFile())) {
            return file_get_contents($this->getErrorFile());
        } else {
            return null;
        }
    }
91664
public function getLogContent()
    {
        if ($this->getLogFile() && file_exists($this->getLogFile())) {
            return file_get_contents($this->getLogFile());
        } else {
            return null;
        }
    }