Source for file ScToolStrips.php
Documentation is available at ScToolStrips.php
* An open source SmartClient library for PHP
* @author Fernando Marcelo Morgenstern <fernando@consultorpc.com>
* @copyright Copyright (c) 2009, ConsultorPC
* @license http://www.gnu.org/licenses/lgpl-3.0-standalone.html
* @link http://smartclientphp.com/
* Smart Client ToolStrips Helper
* @param mixed $data If string, it must be the width of the toolstrip. If array, them we will loop through it
* @param string $height Height of the button
* @param array $members All members for this ToolStrip
* @param array $options Additional options
public function create( $data , $height = '' , $members = '' , $options = '' )
// Check if it is an array
// Add vars to the new toolstrip
$newToolStrip['width'] = $data;
$newToolStrip['height'] = $height;
$newToolStrip['members'] = $members;
// Check if options is array and do the loop
foreach ( $options as $name => $value )
$newToolStrip[$name] = $value;
// Remove vars that shouldn't be quoted
<script type="text/javascript">
|