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 startCalendar() { | |
| $.getJSON( | |
| '<?= $this->Html->url(array('controller' => 'shifts', 'action' => 'listShifts.json')); ?>', | |
| {id: $('<?=$userData?>').val()}, | |
| function(json) { | |
| shiftDays = json; | |
| $("#datepicker<?=$calendarId?>").datepicker({ | |
| beforeShowDay: shiftsWorking, | |
| dateFormat: 'yy-mm-dd', | |
| onSelect: calendarSelect |
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
| // Here is the function in the test file: | |
| public function testStartUnprocessedWithFailedTradeRequest() { | |
| //TODO: Fix Broken test | |
| $Trades = $this->getMockBuilder('_TradeRequest') | |
| ->setMethods(array('send')) | |
| ->disableOriginalConstructor() | |
| ->getMock(); |
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 function testAddPostFailedSave() { | |
| //TODO: Fix broken test | |
| $Trades = $this->generate('Trades', array( | |
| 'methods' => array( | |
| '_requestAllowed', | |
| 'saveAssociated' | |
| ), | |
| )); | |
| $Trades->expects($this->any()) |
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 function testCompare() { | |
| $Trades = $this->generate('Trades', array( | |
| 'methods' => array( | |
| '_requestAllowed' | |
| ), | |
| )); | |
| $Trades->expects($this->any()) | |
| ->method('_requestAllowed') |
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 | |
| $this->Js->get('#UserRoleId')->event('change', | |
| $this->Js->request(array( | |
| 'controller'=>'groups', | |
| 'action'=>'index', | |
| 'ext' => 'json' | |
| ), array( | |
| 'update'=>'#UserGroupId', | |
| 'async' => true, | |
| 'method' => 'post', |
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
| EMAIL.PHP | |
| <?php | |
| /** | |
| * This is email configuration file. | |
| * | |
| * Use it to configure email transports of Cake. | |
| * | |
| * PHP 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: | |
| public function view($id = null) { | |
| $this->Calendar->id = $id; | |
| if (!$this->Calendar->exists()) { | |
| throw new NotFoundException(__('Invalid calendar')); | |
| } | |
| $this->set('calendar', $this->Calendar->read(null, $id)); | |
| } |
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
| $this->request->data | |
| array( | |
| 'Trade' => array( | |
| 'from_user_id' => 'A B', | |
| 'user_id' => '21', | |
| 'shift_id' => '3995' | |
| ), | |
| 'TradesDetail' => array( | |
| (int) 0 => 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
| SELECT `Tag`.`id`, `Tag`.`name` FROM `facemon`.`tags` AS `Tag` | |
| JOIN `facemon`.`news_tags` AS `NewsTag` ON (`Tag`.`id` = `NewsTag`.`tag_id`) | |
| JOIN `facemon`.`news` AS `News` ON (`NewsTag`.`news_id` = `News`.`id`) | |
| JOIN `facemon`.`members_news` AS `MembersNews` ON (`MembersNews`.`news_id` = `News`.`id`) | |
| JOIN `facemon`.`members` AS `Member` ON (`Member`.`id` = `MembersNews`.`member_id`) |
NewerOlder