Source for file ScHtmlFlow.php
Documentation is available at ScHtmlFlow.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 HtmlFlow Helper
* @param mixed $data If string, it must be the element ID. If array, them we will loop through it
* @param string $contents HTML content
* @param string $contentsURL HTML content from a URL
* @param array $options Additional options
public function create( $data , $contents = '' , $contentsURL = '' , $options = '' )
// Check if it is an array
// Add vars to the new button
$newHtmlFlow['ID'] = $data;
$newHtmlFlow['contents'] = $contents;
$newHtmlFlow['contentsURL'] = $contentsURL;
// Check if options is array and do the loop
foreach ( $options as $name => $value )
$newHtmlFlow[$name] = $value;
// Remove vars that shouldn't be quoted
<script type="text/javascript">
|