This file contains 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 | |
/* | |
A class that takes September 15 - 30, 2013 input and converts it into two dates. | |
Also supports September 15 to 30, 2013. | |
*/ | |
class DateRangeParser | |
{ | |
public function splitMonth($range) |
This file contains 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
Ext.application | |
name: 'nso' | |
autoCreateViewport: false | |
appFolder: 'js/nso/app' | |
controllers: ['Users'] | |
requires:[ |
This file contains 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
sm = tickets.getSelectionModel() | |
selections = sm.getSelections() | |
ids = [] | |
for selection in selections | |
ids.push(selection.data.id) | |
console.log ids |
This file contains 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 | |
/** | |
* Secure Controllers | |
* | |
* @package Teleserv | |
* @author Bryan Zarzuela | |
*/ | |
class Teleserv_Controller_Action_Secure extends Zend_Controller_Action | |
{ |
This file contains 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 BlogController extends Zend_Controller_Action | |
{ | |
protected $_em; | |
public function init() | |
{ | |
$this->_em = $this->getInvokeArg('bootstrap')->getResource('doctrine'); | |
} |
This file contains 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 | |
use Doctrine\ORM\EntityManager, | |
Doctrine\ORM\Configuration; | |
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap | |
{ | |
protected function _initDoctrine() | |
{ |
This file contains 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
[production] | |
phpSettings.display_startup_errors = 0 | |
phpSettings.display_errors = 0 | |
includePaths.library = APPLICATION_PATH "/../library" | |
bootstrap.path = APPLICATION_PATH "/Bootstrap.php" | |
bootstrap.class = "Bootstrap" | |
appnamespace = "D2Test" | |
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" |