This file contains 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 editModuleFile(){ | |
$modulePath = './module/TestModule/module.php'; | |
$getModuleContent = file_get_contents($modulePath); | |
$oldContent = $getModuleContent; | |
// find getServiceOcnfig(){ return array( 'factories' => array( | |
$getModuleContent = preg_replace_callback('/[public|protected]*? *?function *?getServiceConfig().*?{.*?return.*?array.*?\(.*?\'factories\'.*?array\(/s', function($macthes){ | |
$string = $macthes[0]; | |
$string .= "\n\t\t"; |
This file contains 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 | |
$cache = StorageFactory::adapterFactory('filesystem', array( | |
'cache_dir' => './data/cache', | |
'ttl' => 3600, | |
'plugins' => array( | |
'exception_handler' => array( | |
'throw_exceptions' => false | |
), | |
'serializer' |
This file contains 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 | |
$select = new Select(); | |
$select->from('real_estate_property')->columns(array('*')); | |
$select->join( | |
'real_estate_property_image', | |
"real_estate_property.id = real_estate_property_image.propertyId", | |
array('path'), |
This file contains 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 | |
/** | |
* Created by PhpStorm. | |
* User: mockie | |
* Date: 4/10/14 | |
* Time: 3:13 PM | |
*/ | |
namespace RealEstate\Controller\Plugin; |
This file contains 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 RealEstate; | |
use RealEstate\View\Helper\RealEstateHeadTitleHelper; | |
class Module | |
{ | |
public function getAutoloaderConfig() | |
{ |
This file contains 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 | |
/** | |
* Created by PhpStorm. | |
* User: mockie | |
* Date: 4/29/14 | |
* Time: 1:58 PM | |
*/ | |
namespace RealEstate\View\Helper; |
This file contains 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 | |
/** | |
* Created by PhpStorm. | |
* User: mockie | |
* Date: 5/10/14 | |
* Time: 9:00 PM | |
*/ | |
namespace User\Model; |
This file contains 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 | |
/** | |
* Created by PhpStorm. | |
* User: mockie | |
* Date: 5/19/14 | |
* Time: 7:54 PM | |
*/ | |
namespace Property\Model; |
This file contains 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
$paginator = $this->getPropertyTable()->exploreProperty($cond); | |
$paginator->setCurrentPageNumber((int)$this->params()->fromQuery('page', 1)); | |
$paginator->setItemCountPerPage(2); | |
return array('paginator' => $paginator); |
This file contains 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 indexAction() | |
{ | |
$repository = $this->em->getRepository('UserDetail\Entity\UserCountry'); | |
$adapter = new DoctrineAdapter( | |
new ORMPaginator( | |
$repository->createQueryBuilder('UserCountry') | |
->where('UserCountry.code=\'IDN\'') | |
->groupBy('UserCountry.code') |
OlderNewer