src/yimaJquery/View/Helper/jQuery.php
protected function createData($mode, $content = null, array $attributes = array())
    {
        $data               = array();

        $data['mode']       = $mode;
        $data['content']    = $content;
        $data['attributes'] = array_merge($attributes, array('type' => 'text/javascript'));

        return $data;
    }
protected function createData($mode, $content = null, array $attributes = array())
    {
        $data               = array();

        $data['mode']       = $mode;
        $data['content']    = $content;
        $data['attributes'] = array_merge($attributes, array('type' => 'text/javascript'));

        return $data;
    }
protected function createData ( $ mode , $ content = null , array $ attributes = array ( ) ) { $ data = array ( ) ; $ data [ 'mode' ] = $ mode ; $ data [ 'content' ] = $ content ; $ data [ 'attributes' ] = array_merge ( $ attributes , array ( 'type' => 'text/javascript' ) ) ; return $ data ; }
Create data item containing all necessary components of script

@param  string $mode       Type of data          script|file|link....
@param  array  $attributes Attributes of data
@param  string $content    Content of data

@return Array
Create data item containing all necessary components of script