public function getJsActionsAllowed($profile, $resource, $actions)
    {
        $actionsAllowed = '[';
        $flag = false;
        foreach ($actions as $action)
        {
            if(parent::isAllowed($profile, $resource, $action->id_008))
            {
                if($flag) $actionsAllowed .= ',';
                $actionsAllowed .= '"' . $action->id_008 . '"';
                $flag =true;
            }
        }
        
        $actionsAllowed .= ']';
        return $actionsAllowed;    
    }
public function getJsActionsAllowed($profile, $resource, $actions)
    {
        $actionsAllowed = '[';
        $flag = false;
        foreach ($actions as $action)
        {
            if(parent::isAllowed($profile, $resource, $action->id_008))
            {
                if($flag) $actionsAllowed .= ',';
                $actionsAllowed .= '"' . $action->id_008 . '"';
                $flag =true;
            }
        }
        
        $actionsAllowed .= ']';
        return $actionsAllowed;    
    }
public function getJsActionsAllowed ( $ profile , $ resource , $ actions ) { $ actionsAllowed = '[' ; $ flag = false ; foreach ( $ actions as $ action ) { if ( parent :: isAllowed ( $ profile , $ resource , $ action -> id_008 ) ) { if ( $ flag ) $ actionsAllowed .= ',' ; $ actionsAllowed .= '"' . $ action -> id_008 . '"' ; $ flag = true ; } } $ actionsAllowed .= ']' ; return $ actionsAllowed ; }
Function that instantiates an array in javascript to identify actions that allow resource

@access	public
@param   integer     $profile
@param   integer     $resource
@param   integer     $actions
@return	array
Function that instantiates an array in javascript to identify actions that allow resource