# css-javascript-toolbox/8.0.2/framework/view/block/parameter/grouper/tab/tab.php

CSS &amp; JavaScript Toolbox, version 8.0.2. 87 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/8.0.2/code/framework/view/block/parameter/grouper/tab/tab.php
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/8.0.2/raw/framework/view/block/parameter/grouper/tab/tab.php
- Modified: 2014-05-06T16:47:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/css-javascript-toolbox/8.0.2/code/framework/view/block/parameter/grouper/tab/tab.php#L10-L20`.

```php
<?php
/**
* 
*/

/**
* 
*/
class CJT_Framework_View_Block_Parameter_Grouper_Tab_Tab {
 	
 	/**
 	* put your comment there...
 	* 
 	* @var mixed
 	*/
 	protected $params = null;
 	
 	/**
 	* put your comment there...
 	* 
 	* @var mixed
 	*/
 	protected $paramsView = array('enqueue' => 
 		array('scripts' => array(), 'styles' => array())
 	);

 	/**
 	* put your comment there...
 	* 
 	* @param mixed $parameters
 	* @return CJT_Framework_View_Block_Parameter_Grouper_Tab
 	*/
 	public function __construct($params) {
 		// Cache params list reference.
		$this->params = $params;
		// Cache styles and scripts to be enqueued.
		foreach ($this->params as $groupKey => $group) {
			foreach ($group['params'] as $param) {
				$this->paramsView['enqueue']['scripts'] = array_merge($this->paramsView['enqueue']['scripts'], $param->enqueueScripts());
				$this->paramsView['enqueue']['styles'] = array_merge($this->paramsView['enqueue']['styles'], $param->enqueueStyles());
			}
		}
 	}

 	/**
 	* put your comment there...
 	* 
 	*/
 	public function __toString() {
 		ob_start();
		include 'index.phtml';
		return ob_get_clean();
 	}

 	/**
 	* put your comment there...
 	* 
 	*/
 	public function enqueueScripts() {
 		return array_merge(array(
 			'jquery',
 			'jquery-ui-tabs'
 			), 
 		$this->paramsView['enqueue']['scripts']);
 	}
 	
 	/**
 	* put your comment there...
 	* 
 	*/
 	public function enqueueStyles() {
 		return array_merge(array(
 			'framework:view:block:parameter:grouper:tab:public:css:tab',
 			'framework:css:jquery-ui-1.8.21.custom',
 			), 
 		$this->paramsView['enqueue']['styles']);
 	}
 	
 	/**
 	* put your comment there...
 	* 
 	*/
 	public function getParams() {
		return $this->params;
 	}

} // End class.
```
