protected function setUserRole($role_id)
    {
        $this->data_role = array();

        if (is_numeric($role_id)) {

            $this->data_role = $this->role->get($role_id);

            if (empty($this->data_role)) {
                $this->outputHttpStatus(404);
            }
        }
    }
protected function setUserRole($role_id)
    {
        $this->data_role = array();

        if (is_numeric($role_id)) {

            $this->data_role = $this->role->get($role_id);

            if (empty($this->data_role)) {
                $this->outputHttpStatus(404);
            }
        }
    }
protected function setUserRole ( $ role_id ) { $ this -> data_role = array ( ) ; if ( is_numeric ( $ role_id ) ) { $ this -> data_role = $ this -> role -> get ( $ role_id ) ; if ( empty ( $ this -> data_role ) ) { $ this -> outputHttpStatus ( 404 ) ; } } }
Returns a user role data
@param integer|null $role_id
Returns a user role data