|
|
@@ -11,6 +11,7 @@ class Schema_UserProcessStorageAcl extends Core_AclSimpleSchemaBase {
|
|
|
'ID' => [ '@type' => 'xsd:integer' ],
|
|
|
'nazwa' => [ '@type' => 'xsd:string', '@alias' => 'DESC' ],
|
|
|
'opis' => [ '@type' => 'xsd:string', '@alias' => 'OPIS' ],
|
|
|
+ 'link_uruchom_filtr_procesu' => [ '@type' => 'p5:www_link' ],
|
|
|
'autor' => [ '@type' => 'xsd:string' , '@alias' => 'A_RECORD_CREATE_AUTHOR' ],
|
|
|
'utworzono' => [ '@type' => 'xsd:date' , '@alias' => 'A_RECORD_CREATE_DATE' ],
|
|
|
'zaktualizował' => [ '@type' => 'xsd:string' , '@alias' => 'A_RECORD_UPDATE_AUTHOR' ],
|
|
|
@@ -78,7 +79,7 @@ class Schema_UserProcessStorageAcl extends Core_AclSimpleSchemaBase {
|
|
|
if (empty($idGroupList)) throw new Exception("Brak przyipsanych grup do użytwkonika");
|
|
|
$sqlIdGroupCsv = implode(",", $idGroupList);
|
|
|
|
|
|
- return DB::getPDO()->fetchAllByKey("
|
|
|
+ $items = DB::getPDO()->fetchAllByKey("
|
|
|
select p.ID
|
|
|
, p.`DESC` as nazwa
|
|
|
, p.`OPIS` as opis
|
|
|
@@ -99,6 +100,10 @@ class Schema_UserProcessStorageAcl extends Core_AclSimpleSchemaBase {
|
|
|
{$sqlOrderBy}
|
|
|
{$sqlLimitOffset}
|
|
|
", 'ID');
|
|
|
+ array_walk($items, function (&$item, $key) {
|
|
|
+ $item['link_uruchom_filtr_procesu'] = Request::getPathUri() . "index.php?FUNCTION_INIT=MENU_SELECT_PROCES&_action=setPermsByProces&id_proces={$item['ID']}";
|
|
|
+ });
|
|
|
+ return $items;
|
|
|
}
|
|
|
|
|
|
public function _getUserIdGroupList() {
|