This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
id : 'root' , | |
name : 'root', | |
someProperty: 'root', | |
children: [ | |
{ | |
$ref: 'node1', | |
name: 'node1', | |
someProperty: 'somePropertyA', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Zend_Dojo_Form returned by getForm() | |
// Having the decorator as "ViewHelper" means you cannot visually display the checkbox as unchecked. | |
// Does not work | |
$this->getForm()->addElement( | |
'CheckBox', | |
$attraction['id'], | |
array( | |
'label' => $attraction['attraction'], | |
'decorators' => array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$interested = array( | |
"activities" => array( "_CLASS" => $entityPath . "PropertyActivityTypes", "_collectionMethod" => "getActivity", "_idMethod" => "getActivityId", "_flatRegistryAccessorMethodSuffix" => "ActivityTypes"), | |
"attractions" => array( "_CLASS" => $entityPath . "PropertyAttractionTypes", "_collectionMethod" => "getAttraction", "_idMethod" => "getAttractionId", "_flatRegistryAccessorMethodSuffix" => "AttractionTypes"), | |
"communications" => array( "_CLASS" => $entityPath . "PropertyCommunicationFeatures","_collectionMethod" => "getCommunication", "_idMethod" => "getFeatureId", "_flatRegistryAccessorMethodSuffix" => "CommunicationFeatures"), | |
"entertainment" => array( "_CLASS" => $entityPath . "PropertyEntertainmentFeatures","_collectionMethod" => "getEntertainment", "_idMethod" => "getFeatureId", "_flatRegistryAccessorMethodSuffix" => "EntertainmentFeatures"), | |
"general" => array( "_CLASS" => $entityPath . "PropertyGeneralFeatures", "_collectionMethod" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var layout = [ | |
{ | |
cells: [ | |
{ field: "seasonName", name:"Season Name", datatype:"string", width: "12", editable: true}, | |
{ field: "startDate", name:"Start Date", width:12}, | |
{ field: "endDate", name:"End Date", width:12}, | |
{ field: "weekNight", name:"Week Night", datatype:"float", width: 7}, | |
{ field: "weekendNight", name:"Weekend Night", datatype:"float", width: 7}, | |
{ field: "weekly", name:"Weekly", datatype:"float", width: 7}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
formatCurrency: function(value, idx){ | |
if(!this._widgets[idx]){ | |
this._widgets[idx] = new dijit.form.TextBox( | |
{ value: value, | |
constraints: {pattern:"#,###,###.00"} | |
}); | |
this._widgets[idx]._connection = dojo.connect(this._widgets[idx], "onFocus", function(e,f,g){ | |
setTimeout(dojo.hitch(this,function(){ | |
dojo.disconnect(this._connection); | |
dojox.grid.util.fire(this,"focus"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
formatCurrency: function(value, idx,e){ | |
if(!this._widgets[e.field][idx]){ | |
this._widgets[e.field][idx] = new dijit.form.NumberTextBox( | |
{ value: value, | |
'class': 'ratesNumber', | |
constraints: {pattern:"#,###,###.00" | |
} | |
}); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dojo.provide("discovery.grid.enhanced.plugins.RowPositionChange"); | |
dojo.require("dojox.grid.enhanced._Plugin"); | |
dojo.declare("discovery.grid.enhanced.plugins.RowPositionChange", dojox.grid.enhanced._Plugin, { | |
name: "rowPositionChange", | |
constructor: function(grid, args){ | |
this.grid = grid; | |
this._mixinGrid(); | |
var layout = this.grid.layout; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// The ViewHelper | |
class My_View_Helper_ClassCounter extends Zend_View_Helper_Abstract | |
{ | |
protected $_registry; | |
public function __construct() | |
{ | |
$this->_registry = My_View_Helper_ClassCounter_Registry::getRegistry(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class My_View_Helper_FuzzyDate extends Zend_View_Helper_Abstract { | |
public function __construct() { | |
} | |
public function fuzzyDate($dateFrom, $dateTo) { |
OlderNewer