protected function addScript($script,$options=array(),$at='begin')
    {
        $options["type"] = Utility::get($options, "type", "text/javascript");
        $this->tags[md5($script)] = array(
            "at"=>$at,
            "tag"=>"script",
            "options"=>$options,
            "content"=>$script,
        );
        return $this;
    }
protected function addScript($script,$options=array(),$at='begin')
    {
        $options["type"] = Utility::get($options, "type", "text/javascript");
        $this->tags[md5($script)] = array(
            "at"=>$at,
            "tag"=>"script",
            "options"=>$options,
            "content"=>$script,
        );
        return $this;
    }
protected function addScript ( $ script , $ options = array ( ) , $ at = 'begin' ) { $ options [ "type" ] = Utility :: get ( $ options , "type" , "text/javascript" ) ; $ this -> tags [ md5 ( $ script ) ] = array ( "at" => $ at , "tag" => "script" , "options" => $ options , "content" => $ script , ) ; return $ this ; }
Add a custom script to the report

@param string $script  Javascript code we want to run
@param array  $options Any additional options you want to put to script tag
@param string $at      The location you want to add the script to whether
at "begin" of report or at the "end" of report

@return ResourceManager This resource manager object
Add a custom script to the report