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 Base\Mail; | |
use Zend\Mail\Transport\Smtp as SmtpTransport; | |
use Zend\Mail\Message; | |
use Zend\View\Model\ViewModel; | |
use Zend\Mime\Message as MimeMessage; |
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 | |
/** | |
* Global Configuration Override | |
* | |
* You can use this file for overriding configuration values from modules, etc. | |
* You would place values in here that are agnostic to the environment and not | |
* sensitive to security. | |
* | |
* @NOTE: In practice, this file will typically be INCLUDED in your source |
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 | |
/** | |
* Global Configuration Override | |
* | |
* You can use this file for overriding configuration values from modules, etc. | |
* You would place values in here that are agnostic to the environment and not | |
* sensitive to security. | |
* | |
* @NOTE: In practice, this file will typically be INCLUDED in your source |
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 | |
$urlPattern = $_SERVER['REQUEST_URI']; | |
$formatUrl = function ($page) use ($urlPattern) { | |
if (!preg_match('/page/', $urlPattern)) | |
return $urlPattern . '/page/' . (int) $page; | |
else | |
return preg_replace('@/page/(\d+)@', '/page/' . (int) $page, $urlPattern); | |
}; | |
?> |
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 getFormElementConfig() | |
{ | |
return array( | |
'factories' => array( | |
'user.form' => function($sm){ | |
$em = $sm->getServiceLocator()->get('doctrine.entitymanager.orm_default'); | |
$builder = new AnnotationBuilder(); | |
$form = $builder->createForm('User\Entity\User'); |
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 | |
/** | |
* WebPatterns (http://webpatterns.com.br/) | |
* | |
* @copyright Copyright (c) 2014-2014. (http://www.webpatterns.com.br) | |
* @license http://webpatterns.com.br/license | |
*/ | |
namespace UserTest\WPAclTest\Controller; |
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 | |
/** | |
* WebPatterns (http://webpatterns.com.br/) | |
* | |
* @copyright Copyright (c) 2014-2014. (http://www.webpatterns.com.br) | |
* @license http://webpatterns.com.br/license | |
*/ | |
namespace WPAclTest\Framework; |
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 | |
$urlPattern = $_SERVER['REQUEST_URI']; | |
$formatUrl = function ($page) use ($urlPattern) { | |
if (!preg_match('/page/', $urlPattern)) | |
return $urlPattern . '/page/' . (int) $page; | |
else | |
return preg_replace('@/page/(\d+)@', '/page/' . (int) $page, $urlPattern); | |
}; | |
?> | |
<?php if ($this->pageCount > 1): ?> |
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 | |
/** | |
* WebPatterns (http://webpatterns.com.br/) | |
* | |
* @copyright Copyright (c) 2014-2014. (http://www.webpatterns.com.br) | |
* @license http://webpatterns.com.br/license | |
*/ | |
namespace WPAcl\Form; |
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 | |
/** | |
* WebPatterns (http://webpatterns.com.br/) | |
* | |
* @copyright Copyright (c) 2014-2014. (http://www.webpatterns.com.br) | |
* @license http://webpatterns.com.br/license | |
*/ | |
namespace WPAcl\Plugin; |
OlderNewer