protected function getData($id)
    {
        $data = (new Query())->select(['data'])
                ->from($this->tableName)
                ->where(['id' => $id])->scalar();
        if ($data !== false) {
            return empty($data) ? [] : unserialize($data);
        }
        return false;
    }
protected function getData($id)
    {
        $data = (new Query())->select(['data'])
                ->from($this->tableName)
                ->where(['id' => $id])->scalar();
        if ($data !== false) {
            return empty($data) ? [] : unserialize($data);
        }
        return false;
    }
protected function getData ( $ id ) { $ data = ( new Query ( ) ) -> select ( [ 'data' ] ) -> from ( $ this -> tableName ) -> where ( [ 'id' => $ id ] ) -> scalar ( ) ; if ( $ data !== false ) { return empty ( $ data ) ? [ ] : unserialize ( $ data ) ; } return false ; }
Get saved profile of the client
@param integer $id
@return boolean|array
Get saved profile of the client