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 | |
| // config/application.config.php | |
| $env = getenv('APPLICATION_ENV'); | |
| return [ | |
| 'appVersion' => '1.2.9', | |
| 'modules' => [ | |
| 'Application', | |
| 'Scrap' | |
| ], | |
| 'module_listener_options' => [ |
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 | |
| // Simulate connections to production applications | |
| $db = connectToProduction('ADAM','MYPASS'); | |
| $db = connectToProduction('AS400','MYPASS'); | |
| $db = connectToProduction('CHIP','MYPASS'); | |
| $db = connectToProduction('WEBUSER','WEBUSER'); | |
| $i = 0; | |
| while($i <= 5) { |
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
| function saveNewCustomer(customerData){ | |
| return $.ajax({ | |
| type:'POST', | |
| url:'myUrl', | |
| data:customerData, | |
| dataType:'json' | |
| }); | |
| } | |
| saveNewCustomer.done(function(response){ |
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 | |
| namespace Sabel; | |
| class MyController | |
| { | |
| public function myMethod($data) | |
| { | |
| SysemReferenceNumberValue::fromString($data['systemReferenceNumber']); | |
| // Use SystemReferenceNumber value object from here on out |
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
| SELECT a.*, b.NumberOfRows | |
| FROM MYTABLE a | |
| CROSS JOIN (SELECT COUNT(*) AS NumberOfRows FROM MYTABLE) b |
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 | |
| $toolkit = new ToolkitService(); | |
| // Data to be passed to toolkit call | |
| $data = array( | |
| 'testLabel' => 'testValue', | |
| //... | |
| ); |
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 | |
| abstract class AbstractValue | |
| { | |
| protected $value; | |
| private function __construct(){} | |
| protected function filter() | |
| { |
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 | |
| namespace Sabel; | |
| abstract class AbstractController | |
| { | |
| protected $diContainer; | |
| public function __construct(DiContainer $diContainer){ | |
| $this->diContainer = $diContainer; | |
| } |
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 | |
| // module/Acme/src/Acme/V1/Rest/Customer/CustomerCollection.php | |
| namespace Acme\V1\Rest\PeddlerPricingFormula; | |
| use Zend\Paginator\Paginator; | |
| class CustomerCollection extends Paginator | |
| { | |
| } |
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
| *************** Beginning of data ************************************* | |
| PGM PARM(&PED) //other params | |
| DCL VAR(&PED) TYPE(*INT) LEN(4) | |
| // other params | |
| CALL PGM(SCRAPNEW/PLRFMLCRTR) PARM(&PED) //other params | |
| ENDPGM | |
| ****************** End of data **************************************** |