public function sure()
    {
        if ($this->hasOption('start')) {
            $this->addOption('doNotSelfQlose');
        }
        if (empty($this->args[0])) {
            $this->args[0] = array();
        }
        switch ($this->called) {
        case 'jquery':
            $this->called = 'script';
            $this->args[0] = array_merge(
                array(
                    'type' => 'text/javascript',
                    'src' => 'https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'
                ),
                $this->args[0]
            );

            return false;
        case 'jqueryui':
            $this->called = 'script';
            $this->args[0] = array_merge(
                array(
                    'type' => 'text/javascript',
                    'src' => 'https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js'
                ),
                $this->args[0]
            );

            return false;
        default:
            $this->called = 'script';
            break;
        }

        if (empty($this->args[0])) {
            return false;
        }

        return is_array($this->args[0])
         || !(substr($this->args[0], 0, 4) == 'http'
         || substr($this->args[0], 0, 3) == '../'
         || substr($this->args[0], 0, 3) == '\./'
         || substr($this->args[0], 0, 2) == './'
         || substr($this->args[0], 0, 1) == '/'
        );
    }
public function sure()
    {
        if ($this->hasOption('start')) {
            $this->addOption('doNotSelfQlose');
        }
        if (empty($this->args[0])) {
            $this->args[0] = array();
        }
        switch ($this->called) {
        case 'jquery':
            $this->called = 'script';
            $this->args[0] = array_merge(
                array(
                    'type' => 'text/javascript',
                    'src' => 'https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'
                ),
                $this->args[0]
            );

            return false;
        case 'jqueryui':
            $this->called = 'script';
            $this->args[0] = array_merge(
                array(
                    'type' => 'text/javascript',
                    'src' => 'https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js'
                ),
                $this->args[0]
            );

            return false;
        default:
            $this->called = 'script';
            break;
        }

        if (empty($this->args[0])) {
            return false;
        }

        return is_array($this->args[0])
         || !(substr($this->args[0], 0, 4) == 'http'
         || substr($this->args[0], 0, 3) == '../'
         || substr($this->args[0], 0, 3) == '\./'
         || substr($this->args[0], 0, 2) == './'
         || substr($this->args[0], 0, 1) == '/'
        );
    }
public function sure ( ) { if ( $ this -> hasOption ( 'start' ) ) { $ this -> addOption ( 'doNotSelfQlose' ) ; } if ( empty ( $ this -> args [ 0 ] ) ) { $ this -> args [ 0 ] = array ( ) ; } switch ( $ this -> called ) { case 'jquery' : $ this -> called = 'script' ; $ this -> args [ 0 ] = array_merge ( array ( 'type' => 'text/javascript' , 'src' => 'https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' ) , $ this -> args [ 0 ] ) ; return false ; case 'jqueryui' : $ this -> called = 'script' ; $ this -> args [ 0 ] = array_merge ( array ( 'type' => 'text/javascript' , 'src' => 'https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js' ) , $ this -> args [ 0 ] ) ; return false ; default : $ this -> called = 'script' ; break ; } if ( empty ( $ this -> args [ 0 ] ) ) { return false ; } return is_array ( $ this -> args [ 0 ] ) || ! ( substr ( $ this -> args [ 0 ] , 0 , 4 ) == 'http' || substr ( $ this -> args [ 0 ] , 0 , 3 ) == '../' || substr ( $ this -> args [ 0 ] , 0 , 3 ) == '\./' || substr ( $ this -> args [ 0 ] , 0 , 2 ) == './' || substr ( $ this -> args [ 0 ] , 0 , 1 ) == '/' ) ; }
Check if Module should be used.

@return boolean
Check if Module should be used .