src/Core/ResourceManagers/ControllerResxBase.php
public function GetComment($key) {
        $resources = $this->GetList();
        $actionExists = array_key_exists($this->ActionValue, $resources);
        $keyExist = $actionExists ?
                array_key_exists($key, $resources[$this->ActionValue]) :
                false;
        if ($keyExist) {
            return $resources[$this->ActionValue][$key][F_controller_resource::F_CONTROLLER_RESOURCE_COMMENT];
        } else {
//            $errMsg = 
//                    "The resource comment doesn't exist. Module => " . 
//                    $this->ModuleValue . 
//                    " ; Action => " . 
//                    $this->ActionValue .
//                    "; Key => " . $key;
//            throw new Classes\ResourceNotFoundException($errMsg, ResourceErrors::RESOURCE_COMMENT_NOT_FOUND, null);
            return "???";
        }
    }
public function GetComment($key) {
        $resources = $this->GetList();
        $actionExists = array_key_exists($this->ActionValue, $resources);
        $keyExist = $actionExists ?
                array_key_exists($key, $resources[$this->ActionValue]) :
                false;
        if ($keyExist) {
            return $resources[$this->ActionValue][$key][F_controller_resource::F_CONTROLLER_RESOURCE_COMMENT];
        } else {
//            $errMsg = 
//                    "The resource comment doesn't exist. Module => " . 
//                    $this->ModuleValue . 
//                    " ; Action => " . 
//                    $this->ActionValue .
//                    "; Key => " . $key;
//            throw new Classes\ResourceNotFoundException($errMsg, ResourceErrors::RESOURCE_COMMENT_NOT_FOUND, null);
            return "???";
        }
    }
public function GetComment ( $ key ) { $ resources = $ this -> GetList ( ) ; $ actionExists = array_key_exists ( $ this -> ActionValue , $ resources ) ; $ keyExist = $ actionExists ? array_key_exists ( $ key , $ resources [ $ this -> ActionValue ] ) : false ; if ( $ keyExist ) { return $ resources [ $ this -> ActionValue ] [ $ key ] [ F_controller_resource :: F_CONTROLLER_RESOURCE_COMMENT ] ; } else { //            $errMsg =  //                    "The resource comment doesn't exist. Module => " .  //                    $this->ModuleValue .  //                    " ; Action => " .  //                    $this->ActionValue . //                    "; Key => " . $key; //            throw new Classes\ResourceNotFoundException($errMsg, ResourceErrors::RESOURCE_COMMENT_NOT_FOUND, null); return "???" ; } }
Get the resource comment by module, action and key.

@param string $key the resource key to find
@return string the resource comment
@todo activate the exception?
Get the resource comment by module action and key .