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
| public $paypal = array( | |
| 'datasource' => 'PaypalIpn.PaypalIpnSource', | |
| 'environment' => 'sandbox', | |
| 'business' => '[email protected]', | |
| ); |
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 | |
| /** | |
| * Custom redis client class to be able to set a custom prefix for every key | |
| * | |
| * @see https://github.com/nicolasff/phpredis | |
| **/ | |
| class RedisClient extends Redis { | |
| /** | |
| * Default prefix |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <phpunit | |
| colors="true" | |
| processIsolation="false" | |
| stopOnFailure="false" | |
| syntaxCheck="false" | |
| bootstrap="./tests/init.php" | |
| > | |
| <php> |
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 User extends Entity { | |
| public function isAdmin() { | |
| return $this->role === 'admin'; | |
| } | |
| } |
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 | |
| $query | |
| ->clause('where') | |
| ->traverse(function($exp) { | |
| $exp->iterateParts(function($part) { | |
| if ($part instanceof Comparison && $part->getField() === 'type') { | |
| return new QueryExpression([$part, ['id IN' => $ids]], [], 'OR'); | |
| } | |
| }); | |
| }) |
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 | |
| /** | |
| * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
| * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | |
| * | |
| * Licensed under The MIT License | |
| * For full copyright and license information, please see the LICENSE.txt | |
| * Redistributions of files must retain the above copyright notice. | |
| * | |
| * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
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 | |
| /** | |
| * Routes configuration | |
| * | |
| * In this file, you set up routes to your controllers and their actions. | |
| * Routes are very important mechanism that allows you to freely connect | |
| * different urls to chosen controllers and their actions (functions). | |
| * | |
| * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
| * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
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 | |
| define('LOOP',1000000); | |
| class ClassA { | |
| } | |
| function a($arg1, ClassA $arg2=null, ClassA $arg3=null, ClassA $arg4=null) {}; | |
| function b($arg1, $arg2=null, $arg3=null, $arg4=null) {}; | |
| function f1() { |
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 | |
| /** | |
| * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
| * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | |
| * | |
| * Licensed under The MIT License | |
| * For full copyright and license information, please see the LICENSE.txt | |
| * Redistributions of files must retain the above copyright notice. | |
| * | |
| * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
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
| class AppController extends Controller { | |
| public $components = array( | |
| 'Session', | |
| 'Cookie', | |
| 'Auth' => array( | |
| 'authenticate' => array( | |
| 'Form' => array( | |
| 'userModel' => 'Member', | |
| 'fields' => array('username' => 'pseudo', 'password' => 'password') | |
| ) |