Source for file ScGeneral.php
Documentation is available at ScGeneral.php
* An open source SmartClient View Helper for Zend Framework
* @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/
require_once 'Zend/View/Interface.php';
require_once 'Zend/Json/Encoder.php';
* Smart Client General Helper
* @uses viewHelper SmartClient
* @var Zend_View_Interface
* @param $view Zend_View_Interface
public function setView (Zend_View_Interface $view)
* Create the scripts for include
* @param string $sc_path Path where SmartClient is located
* @param string $theme SmartClient theme
public function includeScripts( $scPath = 'js/isomorphic/' , $theme = 'SmartClient' )
<script type="text/javascript">var isomorphicDir="'. $scPath . '";</script>
<script src='. $scPath . 'system/modules/ISC_Core.js type="text/javascript"></script>
<script src='. $scPath . 'system/modules/ISC_Foundation.js type="text/javascript"></script>
<script src='. $scPath . 'system/modules/ISC_Containers.js type="text/javascript"></script>
<script src='. $scPath . 'system/modules/ISC_Grids.js type="text/javascript"></script>
<script src='. $scPath . 'system/modules/ISC_Forms.js type="text/javascript"></script>
<script src='. $scPath . 'system/modules/ISC_DataBinding.js type="text/javascript"></script>
<script src='. $scPath . 'skins/'. $theme . '/load_skin.js type="text/javascript"></script>
* Add QuotesStr to String
* Remove quotes from specific vars that are not supposed to be quoted using
* the $removeQuotesStr var
* @param string $json String in json format
// Removes quotes replacing remove_quotes_str
|