Línea 118... |
Línea 118... |
118 |
$acl = $this->getEvent()->getViewModel()->getVariable('acl');
|
118 |
$acl = $this->getEvent()->getViewModel()->getVariable('acl');
|
119 |
$allowAdd = $acl->isAllowed($currentUser->usertype_id, 'development-and-content/add');
|
119 |
$allowAdd = $acl->isAllowed($currentUser->usertype_id, 'development-and-content/add');
|
120 |
$allowEdit = $acl->isAllowed($currentUser->usertype_id, 'development-and-content/edit');
|
120 |
$allowEdit = $acl->isAllowed($currentUser->usertype_id, 'development-and-content/edit');
|
121 |
$allowDelete = $acl->isAllowed($currentUser->usertype_id, 'development-and-content/delete');
|
121 |
$allowDelete = $acl->isAllowed($currentUser->usertype_id, 'development-and-content/delete');
|
122 |
$allowAproved = $acl->isAllowed($currentUser->usertype_id, 'development-and-content/aproved');
|
122 |
$allowAproved = $acl->isAllowed($currentUser->usertype_id, 'development-and-content/aproved');
|
123 |
$allowCategories = $acl->isAllowed($currentUser->usertype_id, 'development-and-content/categories');
|
- |
|
Línea 124... |
Línea 123... |
124 |
|
123 |
|
125 |
$items = [];
|
124 |
$items = [];
|
126 |
$feedMapper = FeedMapper::getInstance($this->adapter);
|
125 |
$feedMapper = FeedMapper::getInstance($this->adapter);
|
Línea 475... |
Línea 474... |
475 |
$basename = substr($str, 0, strrpos($str, '.'));
|
474 |
$basename = substr($str, 0, strrpos($str, '.'));
|
476 |
$basename = str_replace('.', '-', $basename);
|
475 |
$basename = str_replace('.', '-', $basename);
|
Línea 477... |
Línea 476... |
477 |
|
476 |
|
Línea 478... |
Línea 477... |
478 |
$extension = substr($str, strrpos($str, '.'));
|
477 |
$extension = substr($str, strrpos($str, '.'));
|
Línea 479... |
Línea -... |
479 |
|
- |
|
480 |
$str = $basename . $extension;
|
- |
|
481 |
|
- |
|
482 |
$str = strip_tags($str);
|
- |
|
483 |
$str = preg_replace('/[\r\n\t ]+/', ' ', $str);
|
- |
|
484 |
$str = preg_replace('/[\"\*\/\:\<\>\?\'\|\,]+/', ' ', $str);
|
- |
|
485 |
$str = strtolower($str);
|
- |
|
486 |
$str = html_entity_decode($str, ENT_QUOTES, "utf-8");
|
- |
|
487 |
$str = htmlentities($str, ENT_QUOTES, "utf-8");
|
- |
|
488 |
$str = preg_replace("/(&)([a-z])([a-z]+;)/i", '$2', $str);
|
- |
|
489 |
$str = str_replace(' ', '-', $str);
|
478 |
|
490 |
$str = rawurlencode($str);
|
479 |
$str = $basename . $extension;
|
Línea 491... |
Línea 480... |
491 |
$str = str_replace('%', '-', $str);
|
480 |
|
492 |
return trim(strtolower($str));
|
481 |
return Functions::normalizeString($str);
|
493 |
}
|
482 |
}
|