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->where(array("ItemID" => (int)$itemId)); | |
| $select->where->and->nest | |
| ->like('FirstName', $inputFilter->getValue("searchCriteria") . "%") | |
| ->or->like('FirstName', "%" . $inputFilter->getValue("searchCriteria")) | |
| ->or->like('LastName', $inputFilter->getValue("searchCriteria") . "%") | |
| ->or->like('LastName', "%" . $inputFilter->getValue("searchCriteria") | |
| ); |
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
| $pdf = new DOMPDF(); | |
| $pdf->load_html(utf8_decode($customtext)); |
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
| git flow feature finish $( git flow feature list | sed 's/^* //g' ) |
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 Generic\Model; | |
| use Zend\Db\Sql\Predicate\Predicate; | |
| use Zend\Db\TableGateway\TableGateway; | |
| use Zend\Db\Sql\Select; | |
| class GenericTable | |
| { | |
| protected $tableGateway; |
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 Generic\Model; | |
| use Zend\Db\TableGateway\TableGateway; | |
| use Zend\Db\Sql\Select; | |
| class GenericTable | |
| { | |
| protected $tableGateway; |
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 GenericTest\Model; | |
| use Generic\Model\GenericTable; | |
| use Generic\Model\Generic; | |
| use Zend\Db\ResultSet\ResultSet; | |
| use PHPUnit_Framework_TestCase; | |
| use Zend\Db\Sql\Predicate\Predicate; | |
| use Zend\Db\Sql\Select; | |
| use \Mockery as m; |
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's the function call. | |
| * $searchCriteria is an instance of \Zend\InputFilter\InputFilter | |
| */ | |
| $select->where->greaterThanOrEqualTo( | |
| "EventDate", new \Zend\Db\Sql\Expression( | |
| "STR_TO_DATE('" . $searchCriteria->getValue("startDate") ."','%m-%d-%Y')" | |
| ) | |
| ); |
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
| namespace MaltBlue\Model; | |
| use Zend\Db\TableGateway\TableGateway; | |
| use Zend\Db\Sql\Select; | |
| class CountryDebtTable extends QuickSearchTable | |
| { | |
| protected $tableGateway; | |
| public function __construct(TableGateway $tableGateway) |
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
| namespace MaltBlue\Model; | |
| use Zend\InputFilter\Factory as InputFactory; | |
| use Zend\InputFilter\InputFilter; | |
| use Zend\InputFilter\InputFilterAwareInterface; | |
| use Zend\InputFilter\InputFilterInterface; | |
| use MaltBlue\Filter\Float; | |
| class CountryDebt implements InputFilterAwareInterface | |
| { |
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 getServiceConfig() | |
| { | |
| return array( | |
| 'CountryDebtTableGateway' => function ($sm) { | |
| $dbAdapter = $sm->get('Zend\Db\Adapter\Adapter'); | |
| $hydrator = new \MaltBlue\Hydrator\TableEntityMapper(array( | |
| 'CountryID' => 'countryId', | |
| 'DebtId' => 'debtId', | |
| 'DebtLevel' => 'debtLevel', | |
| )); |
OlderNewer