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: 11/27/14 | |
* Time: 10:09 AM | |
*/ | |
namespace Mockizart\Bundle\BlogBundle\Service\Entity; |
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: 11/27/14 | |
* Time: 10:09 AM | |
*/ | |
namespace Mockizart\Bundle\BlogBundle\Service\Entity; |
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 Mockizart\Bundle\BlogBundle\Controller; | |
use Mockizart\Bundle\BlogBundle\MockizartBlogBundle; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Mockizart\Bundle\BlogBundle\Entity\MockblogTag; | |
use Mockizart\Bundle\BlogBundle\Form\MockblogTagType; |
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 | |
// module/User/src/User/View/Helper/Hellohelper.php | |
/** | |
* Created by PhpStorm. | |
* User: mockie | |
* Date: 11/8/14 | |
* Time: 5:33 AM | |
*/ |
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
public function updateProfileAction() | |
{ | |
$authorize = $this->getServiceLocator()->get('BjyAuthorize\Provider\Identity\ProviderInterface'); | |
$roles = $authorize->getIdentityRoles(); | |
Debug::dump($this->ZfcUserAuthentication()->hasIdentity()); | |
// Debug::dump($roles); | |
die; | |
} |
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
object(Zend\Paginator\Paginator)#492 (11) { | |
["cacheEnabled":protected] => bool(true) | |
["adapter":protected] => object(DoctrineORMModule\Paginator\Adapter\DoctrinePaginator)#483 (1) { | |
["paginator":protected] => object(Doctrine\ORM\Tools\Pagination\Paginator)#489 (4) { | |
["query":"Doctrine\ORM\Tools\Pagination\Paginator":private] => object(Doctrine\ORM\Query)#504 (17) { | |
["_state":"Doctrine\ORM\Query":private] => int(2) | |
["_dql":"Doctrine\ORM\Query":private] => string(120) "SELECT UserCountry FROM UserDetail\Entity\UserCountry UserCountry WHERE UserCountry.code='IDN' GROUP BY UserCountry.code" | |
["_parserResult":"Doctrine\ORM\Query":private] => NULL | |
["_firstResult":"Doctrine\ORM\Query":private] => NULL | |
["_maxResults":"Doctrine\ORM\Query":private] => NULL |
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') |
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 | |
/** | |
* 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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: mockie | |
* Date: 5/10/14 | |
* Time: 9:00 PM | |
*/ | |
namespace User\Model; |