@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** CheckRouteListener.php */ |
| 11 | 11 | namespace Acl\Listener; |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * |
| 59 | 59 | * @param EventManagerInterface $events |
| 60 | 60 | * @param integer $priority |
| 61 | - */ |
|
| 61 | + */ |
|
| 62 | 62 | public function attach(EventManagerInterface $events) |
| 63 | 63 | { |
| 64 | 64 | $this->listeners[] = $events->attach(MvcEvent::EVENT_ROUTE, array($this, 'onRoute'), -10); |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | $acl = $this->getAcl(); |
| 113 | 113 | |
| 114 | 114 | if ($acl->hasResource($resourceId) && !$acl->isAllowed($role, $resourceId, $privilege)) { |
| 115 | - /* |
|
| 115 | + /* |
|
| 116 | 116 | * Exceptions are only catched within the dispatch listener, so |
| 117 | 117 | * we have to set the exception manually in the event |
| 118 | 118 | * and trigger the DISPATCH_ERROR event. |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** Auth model */ |
| 11 | 11 | namespace Auth\Entity; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | * Gets the Day of the date of birth |
| 31 | 31 | * |
| 32 | 32 | * @return string |
| 33 | - */ |
|
| 33 | + */ |
|
| 34 | 34 | public function getBirthDay(); |
| 35 | 35 | |
| 36 | 36 | /** |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * Gets the month of the date of birth |
| 45 | 45 | * |
| 46 | 46 | * @return string |
| 47 | - */ |
|
| 47 | + */ |
|
| 48 | 48 | public function getBirthMonth(); |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * Gets the Year of the date of birth. |
| 59 | 59 | * |
| 60 | 60 | * @return string |
| 61 | - */ |
|
| 61 | + */ |
|
| 62 | 62 | public function getBirthYear(); |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * Gets the gender |
| 112 | 112 | * |
| 113 | 113 | * @return string |
| 114 | - */ |
|
| 114 | + */ |
|
| 115 | 115 | public function getGender(); |
| 116 | 116 | |
| 117 | 117 | |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * Gets the users street |
| 153 | 153 | * |
| 154 | 154 | * @return string |
| 155 | - */ |
|
| 155 | + */ |
|
| 156 | 156 | public function getStreet(); |
| 157 | 157 | |
| 158 | 158 | /** |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 6 | - * @license MIT |
|
| 7 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 6 | + * @license MIT |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Auth\Entity; |
| 10 | 10 | |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | namespace Auth\Factory\Form; |
| 11 | 11 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | || array_key_exists('user', $config['acl']['roles']) |
| 40 | 40 | ? array(User::ROLE_USER) |
| 41 | 41 | : array('none') |
| 42 | - ); |
|
| 42 | + ); |
|
| 43 | 43 | |
| 44 | 44 | $valueOptions = array(); |
| 45 | 45 | foreach ($publicRoles as $role) { |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** GroupFieldset.php */ |
| 11 | 11 | namespace Auth\Form; |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | public function init() |
| 29 | 29 | { |
| 30 | 30 | $this->setName('data') |
| 31 | - ->setLabel('Group data') |
|
| 32 | - ->setUseAsBaseFieldset(true) |
|
| 33 | - ->setHydrator(new EntityHydrator()); |
|
| 31 | + ->setLabel('Group data') |
|
| 32 | + ->setUseAsBaseFieldset(true) |
|
| 33 | + ->setHydrator(new EntityHydrator()); |
|
| 34 | 34 | |
| 35 | 35 | $this->add( |
| 36 | 36 | array( |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | 'required' => true, |
| 71 | 71 | 'validators' => array( |
| 72 | 72 | array('name' => 'Auth/Form/UniqueGroupName', |
| 73 | - 'options' => array( |
|
| 73 | + 'options' => array( |
|
| 74 | 74 | 'allowName' => 'edit' == $this->getOption('mode') |
| 75 | 75 | ? $this->getObject()->getName() |
| 76 | 76 | : null |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** UsersCollection.php */ |
| 11 | 11 | namespace Auth\Form; |
@@ -98,9 +98,9 @@ discard block |
||
| 98 | 98 | ); |
| 99 | 99 | |
| 100 | 100 | $this->setCount(0) |
| 101 | - ->setAllowRemove(true) |
|
| 102 | - ->setAllowAdd(true) |
|
| 103 | - ->setShouldCreateTemplate(true); |
|
| 101 | + ->setAllowRemove(true) |
|
| 102 | + ->setAllowAdd(true) |
|
| 103 | + ->setShouldCreateTemplate(true); |
|
| 104 | 104 | |
| 105 | 105 | |
| 106 | 106 | } |
@@ -20,8 +20,8 @@ |
||
| 20 | 20 | public function init() |
| 21 | 21 | { |
| 22 | 22 | $this->setName('base'); |
| 23 | - //->setLabel( /* @translate */ 'General'); |
|
| 24 | - //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
| 23 | + //->setLabel( /* @translate */ 'General'); |
|
| 24 | + //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
| 25 | 25 | |
| 26 | 26 | |
| 27 | 27 | $this->add( |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * YAWIK |
|
| 4 | - * |
|
| 5 | - * @filesource |
|
| 6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 7 | - * @license MIT |
|
| 8 | - */ |
|
| 3 | + * YAWIK |
|
| 4 | + * |
|
| 5 | + * @filesource |
|
| 6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
| 7 | + * @license MIT |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** */ |
| 11 | 11 | namespace Auth\Form; |
@@ -58,9 +58,9 @@ discard block |
||
| 58 | 58 | /** @var ModuleOptions $options */ |
| 59 | 59 | |
| 60 | 60 | $form->get($this->fileName)->setViewHelper('FormImageUpload') |
| 61 | - ->setMaxSize($options->getContactImageMaxSize()) |
|
| 62 | - ->setAllowedTypes($options->getContactImageMimeType()) |
|
| 63 | - ->setForm($form); |
|
| 61 | + ->setMaxSize($options->getContactImageMaxSize()) |
|
| 62 | + ->setAllowedTypes($options->getContactImageMimeType()) |
|
| 63 | + ->setForm($form); |
|
| 64 | 64 | |
| 65 | 65 | } |
| 66 | 66 | } |
@@ -57,9 +57,9 @@ discard block |
||
| 57 | 57 | if ($exception instanceof UnauthorizedImageAccessException) { |
| 58 | 58 | $image = __DIR__ . '/../../../../../public/images/unauthorized-access.png'; |
| 59 | 59 | $response->setStatusCode(403) |
| 60 | - ->setContent(file_get_contents($image)) |
|
| 61 | - ->getHeaders() |
|
| 62 | - ->addHeaderLine('Content-Type', 'image/png'); |
|
| 60 | + ->setContent(file_get_contents($image)) |
|
| 61 | + ->getHeaders() |
|
| 62 | + ->addHeaderLine('Content-Type', 'image/png'); |
|
| 63 | 63 | $e->stopPropagation(); |
| 64 | 64 | $response->sendHeaders(); |
| 65 | 65 | //echo file_get_contents($image); |
@@ -99,10 +99,10 @@ discard block |
||
| 99 | 99 | $model->setTemplate($this->getExceptionTemplate()); |
| 100 | 100 | $e->setResult($model); |
| 101 | 101 | |
| 102 | - // $statusCode = $response->getStatusCode(); |
|
| 103 | - // if ($statusCode === 200) { |
|
| 102 | + // $statusCode = $response->getStatusCode(); |
|
| 103 | + // if ($statusCode === 200) { |
|
| 104 | 104 | $response->setStatusCode(403); |
| 105 | - // } |
|
| 105 | + // } |
|
| 106 | 106 | |
| 107 | 107 | |
| 108 | 108 | } |