src/Common/Service/View.php
public function getData($sKey = null)
    {
        if (is_null($sKey)) {
            return $this->aData;
        } elseif (array_key_exists($sKey, $this->aData)) {
            return $this->aData[$sKey];
        } else {
            return null;
        }
    }
public function getData($sKey = null)
    {
        if (is_null($sKey)) {
            return $this->aData;
        } elseif (array_key_exists($sKey, $this->aData)) {
            return $this->aData[$sKey];
        } else {
            return null;
        }
    }
public function getData ( $ sKey = null ) { if ( is_null ( $ sKey ) ) { return $ this -> aData ; } elseif ( array_key_exists ( $ sKey , $ this -> aData ) ) { return $ this -> aData [ $ sKey ] ; } else { return null ; } }
Get an item from the view data array

@param string $sKey The key to retrieve

@return array|mixed|null
Get an item from the view data array