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
| Table `questions` | |
| ---------------- | |
| id | question | |
| 1 asdasdads.. | |
| 2 asdasdasda.. | |
| 3 asdasdas... | |
| Table `answers` | |
| ---------------- | |
| id | answer | correct ('Y','N') |
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 | |
| $sample = array( | |
| 'pictures' => array( | |
| 'name' => array( | |
| 1 => array( | |
| 1 => 'Chrysanthemum.jpg', | |
| 2 => 'Desert.jpg', | |
| ), | |
| 2 => 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
| <?php | |
| class UploadedFile | |
| { | |
| /** | |
| * @var string | |
| */ | |
| protected $name; | |
| /** | |
| * @var string |
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
| Configuration File (php.ini) Path: /etc/php5/cli | |
| Loaded Configuration File: /etc/php5/cli/php.ini | |
| Scan for additional .ini files in: /etc/php5/cli/conf.d | |
| Additional .ini files parsed: /etc/php5/cli/conf.d/10-pdo.ini, | |
| /etc/php5/cli/conf.d/20-mysql.ini, | |
| /etc/php5/cli/conf.d/20-mysqli.ini, | |
| /etc/php5/cli/conf.d/20-pdo_mysql.ini, | |
| /etc/php5/cli/conf.d/20-xdebug.ini |
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
| Ticket.controller('CloseTicketCtrl', ['$scope', '$http', '$location', '$log', function($scope, $http, $location, $log) | |
| { | |
| $scope.methodName = 'POST'; | |
| $scope.url = '/?show=ticket&ticket_id='; | |
| $scope.close = function(ticketId) | |
| { | |
| $http({ | |
| method: $scope.methodName, | |
| url: $scope.url + ticketId, |
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
| div.container>div.panel.panel-default>div.panel-heading+div.panel-body |
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 | |
| public function getUniqueQuestions( $entryId, $limit = 30, array $excludeQuestions = array() ) | |
| { | |
| $Query = $this->getEntityManager()->createQueryBuilder() | |
| ->select( 'q' ) | |
| ->from( 'Application\Entity\QuestionsToQuizzes', 'qtq' ) | |
| ->innerJoin( 'qtq.question', 'q' ) | |
| ->innerJoin( 'qtq.quiz', 'qz' ) | |
| ->where( 'qz.entry = :entry' ) |
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 Some\Test\That\Is\Here; | |
| class Foo | |
| { | |
| const | |
| SOME_VALUE = 1; | |
| } |
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
| module | |
| .directive('onVisible', function() | |
| { | |
| return { | |
| restrict: 'A', | |
| scope: { | |
| functionName: '=' | |
| }, | |
| link: function(scope, element, attrs) | |
| { |
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
| .factory('Helper', function() | |
| { | |
| return (function() | |
| { | |
| this.validateJson = function(jsonObject) | |
| { | |
| try | |
| { | |
| JSON.stringify(jsonObject); | |
| return true; |