public function getAccessInformation($key = null)
    {
        $info = $this->data['access_information'];

        // Handle old-format (serialized) access information first:
        if (!empty($info) && !in_array(substr($info, 0, 1), array('{', '['))) {
            $data = unserialize($info);
        } else {
            $data = json_decode($info, true);
        }

        if (is_null($key)) {
            $rtn = $data;
        } elseif (isset($data[$key])) {
            $rtn = $data[$key];
        } else {
            $rtn = null;
        }

        return $rtn;
    }
public function getAccessInformation($key = null)
    {
        $info = $this->data['access_information'];

        // Handle old-format (serialized) access information first:
        if (!empty($info) && !in_array(substr($info, 0, 1), array('{', '['))) {
            $data = unserialize($info);
        } else {
            $data = json_decode($info, true);
        }

        if (is_null($key)) {
            $rtn = $data;
        } elseif (isset($data[$key])) {
            $rtn = $data[$key];
        } else {
            $rtn = null;
        }

        return $rtn;
    }
public function getAccessInformation ( $ key = null ) { $ info = $ this -> data [ 'access_information' ] ; // Handle old-format (serialized) access information first: if ( ! empty ( $ info ) && ! in_array ( substr ( $ info , 0 , 1 ) , array ( '{' , '[' ) ) ) { $ data = unserialize ( $ info ) ; } else { $ data = json_decode ( $ info , true ) ; } if ( is_null ( $ key ) ) { $ rtn = $ data ; } elseif ( isset ( $ data [ $ key ] ) ) { $ rtn = $ data [ $ key ] ; } else { $ rtn = null ; } return $ rtn ; }
Get this project's access_information data. Pass a specific key or null for all data.
@param string|null $key
@return mixed|null|string
Get this project s access_information data . Pass a specific key or null for all data .