当前位置: 首页>>代码示例>>PHP>>正文


PHP PageList::AddGroup方法代码示例

本文整理汇总了PHP中PageList::AddGroup方法的典型用法代码示例。如果您正苦于以下问题:PHP PageList::AddGroup方法的具体用法?PHP PageList::AddGroup怎么用?PHP PageList::AddGroup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PageList的用法示例。


在下文中一共展示了PageList::AddGroup方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: GetPageList

 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     $result->AddGroup($this->RenderText('Maestras'));
     $result->AddGroup($this->RenderText('Paramétricas'));
     if (GetCurrentUserGrantForDataSource('public.sga_accion')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Acción (Espacio / Bien)'), 'accion.php', $this->RenderText('Acción'), $currentPageCaption == $this->RenderText('Acción (Espacio / Bien)'), false, $this->RenderText('Maestras')));
     if (GetCurrentUserGrantForDataSource('public.sga_tarea_plan')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Tarea Planificada'), 'tarea_plan.php', $this->RenderText('Tarea Planificada'), $currentPageCaption == $this->RenderText('Tarea Planificada'), false, $this->RenderText('Maestras')));
     if (GetCurrentUserGrantForDataSource('public.sga_espacio')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Espacio'), 'espacio.php', $this->RenderText('Espacio'), $currentPageCaption == $this->RenderText('Espacio'), false, $this->RenderText('Maestras')));
     if (GetCurrentUserGrantForDataSource('public.sga_bien')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Bien'), 'bien.php', $this->RenderText('Bien'), $currentPageCaption == $this->RenderText('Bien'), false, $this->RenderText('Maestras')));
     if (GetCurrentUserGrantForDataSource('public.sga_metodologia')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Metodologia de Acción'), 'metodologia.php', $this->RenderText('Metodologia'), $currentPageCaption == $this->RenderText('Metodologia de Acción'), false, $this->RenderText('Paramétricas')));
     if (GetCurrentUserGrantForDataSource('public.sga_tipo_accion')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Tipo Accion'), 'tipo_accion.php', $this->RenderText('Tipo Accion'), $currentPageCaption == $this->RenderText('Tipo Accion'), false, $this->RenderText('Paramétricas')));
     if (GetCurrentUserGrantForDataSource('public.sga_tipo_bien')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Tipo Bien'), 'tipo_bien.php', $this->RenderText('Tipo Bien'), $currentPageCaption == $this->RenderText('Tipo Bien'), false, $this->RenderText('Paramétricas')));
     if (GetCurrentUserGrantForDataSource('public.sga_periodicidad')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Periodicidad'), 'periodicidad.php', $this->RenderText('Periodicidad'), $currentPageCaption == $this->RenderText('Periodicidad'), false, $this->RenderText('Paramétricas')));
     if (GetCurrentUserGrantForDataSource('public.sga_planta')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Planta'), 'planta.php', $this->RenderText('Planta'), $currentPageCaption == $this->RenderText('Planta'), false, $this->RenderText('Paramétricas')));
     if (GetCurrentUserGrantForDataSource('public.sga_origen')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Origen'), 'origen.php', $this->RenderText('Origen'), $currentPageCaption == $this->RenderText('Origen'), false, $this->RenderText('Paramétricas')));
     if (GetCurrentUserGrantForDataSource('public.sga_tipo_espacio')->HasViewGrant())
         $result->AddPage(new PageLink($this->RenderText('Tipo Espacio'), 'tipo_espacio.php', $this->RenderText('Tipo Espacio'), $currentPageCaption == $this->RenderText('Tipo Espacio'), false, $this->RenderText('Paramétricas')));
     
     if ( HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser() ) {
       $result->AddGroup('Admin area');
       $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, false, 'Admin area'));
     }
     return $result;
 }
开发者ID:jsrxar,项目名称:dto,代码行数:35,代码来源:periodicidad.php

示例2: GetPageList

 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     $result->AddGroup($this->RenderText('Default'));
     if (GetCurrentUserGrantForDataSource('clienti')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Clienti'), 'clienti.php', $this->RenderText('Clienti'), $currentPageCaption == $this->RenderText('Clienti'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('articoli')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Articoli'), 'articoli.php', $this->RenderText('Articoli'), $currentPageCaption == $this->RenderText('Articoli'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('famiglie')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Famiglie'), 'famiglie.php', $this->RenderText('Famiglie'), $currentPageCaption == $this->RenderText('Famiglie'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('listino_voci')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Listino Voci'), 'listino_voci.php', $this->RenderText('Listino Voci'), $currentPageCaption == $this->RenderText('Listino Voci'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('listino_articoli')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Listino Articoli'), 'listino_articoli.php', $this->RenderText('Listino Articoli'), $currentPageCaption == $this->RenderText('Listino Articoli'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('voci_costo')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Voci Costo'), 'voci_costo.php', $this->RenderText('Voci Costo'), $currentPageCaption == $this->RenderText('Voci Costo'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('formule_calcolo')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Formule Calcolo'), 'formule_calcolo.php', $this->RenderText('Formule Calcolo'), $currentPageCaption == $this->RenderText('Formule Calcolo'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('scontistica_clienti')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Scontistica Clienti'), 'scontistica_clienti.php', $this->RenderText('Scontistica Clienti'), $currentPageCaption == $this->RenderText('Scontistica Clienti'), false, $this->RenderText('Default')));
     }
     if (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddGroup('Admin area');
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, false, 'Admin area'));
     }
     return $result;
 }
开发者ID:eroncalli,项目名称:atig,代码行数:35,代码来源:elenco_clienti_view.php

示例3: GetPageList

 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     $result->AddGroup($this->RenderText('Default'));
     if (GetCurrentUserGrantForDataSource('dbo.EtatConnexion')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Dbo.EtatConnexion'), 'dbo.EtatConnexion.php', $this->RenderText('Dbo.EtatConnexion'), $currentPageCaption == $this->RenderText('Dbo.EtatConnexion'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('dbo.EvenementSysteme')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Dbo.EvenementSysteme'), 'dbo.EvenementSysteme.php', $this->RenderText('Dbo.EvenementSysteme'), $currentPageCaption == $this->RenderText('Dbo.EvenementSysteme'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('dbo.InfosFichiers')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Dbo.InfosFichiers'), 'dbo.InfosFichiers.php', $this->RenderText('Dbo.InfosFichiers'), $currentPageCaption == $this->RenderText('Dbo.InfosFichiers'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('dbo.IPClients')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Dbo.IPClients'), 'dbo.IPClients.php', $this->RenderText('Dbo.IPClients'), $currentPageCaption == $this->RenderText('Dbo.IPClients'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('dbo.MachinesClientes')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Dbo.MachinesClientes'), 'dbo.MachinesClientes.php', $this->RenderText('Dbo.MachinesClientes'), $currentPageCaption == $this->RenderText('Dbo.MachinesClientes'), false, $this->RenderText('Default')));
     }
     if (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddGroup('Admin area');
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, false, 'Admin area'));
     }
     return $result;
 }
开发者ID:martinw0102,项目名称:ProjetSyst,代码行数:26,代码来源:dbo.MachinesClientes.php

示例4: GetPageList

 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     $result->AddGroup($this->RenderText('Default'));
     if (GetCurrentUserGrantForDataSource('Dashboard')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Dashboard'), 'Dashboard.php', $this->RenderText('Dashboard'), $currentPageCaption == $this->RenderText('Dashboard'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('program')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Project Type'), 'program.php', $this->RenderText('Project Type'), $currentPageCaption == $this->RenderText('Project Type'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('project')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('View all Projects'), 'project.php', $this->RenderText('Projects'), $currentPageCaption == $this->RenderText('View all Projects'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('task')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Tasks - Time Tracking'), 'task.php', $this->RenderText('Tasks - Time Tracking'), $currentPageCaption == $this->RenderText('Tasks - Time Tracking'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('Hours per Project by user')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Hours per Project'), 'Hours per project by user.php', $this->RenderText('Hours per project'), $currentPageCaption == $this->RenderText('Hours per Project'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('staff')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Staff'), 'staff.php', $this->RenderText('Staff'), $currentPageCaption == $this->RenderText('Staff'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('department')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Department'), 'department.php', $this->RenderText('Department'), $currentPageCaption == $this->RenderText('Department'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('Priority')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Priority'), 'Priority.php', $this->RenderText('Priority'), $currentPageCaption == $this->RenderText('Priority'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('task_names')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Task Names'), 'task_names.php', $this->RenderText('Task Names'), $currentPageCaption == $this->RenderText('Task Names'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('View Pay Period')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('View Pay Period'), 'View_Pay_Period.php', $this->RenderText(''), $currentPageCaption == $this->RenderText('View Pay Period'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('department_projects')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Department Projects'), 'department_projects.php', $this->RenderText('Department Projects'), $currentPageCaption == $this->RenderText('Department Projects'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('Multiple Time Entry')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Multiple Time Entry'), 'multiple_time_entry.php', $this->RenderText('Multiple Time Entry'), $currentPageCaption == $this->RenderText('Multiple Time Entry'), false, $this->RenderText('Default')));
     }
     if (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddGroup('Admin area');
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, false, 'Admin area'));
     }
     return $result;
 }
开发者ID:BCDevExchange,项目名称:WORKPLAN,代码行数:47,代码来源:Project_by_approved_budget.php

示例5: createForPage

 public static function createForPage(CommonPage $page)
 {
     $currentPageFilename = $page->GetPageFileName();
     $pageList = new PageList($page);
     $pageGroups = GetPageGroups();
     foreach ($pageGroups as $group) {
         $pageList->AddGroup($page->RenderText($group));
     }
     $pageInfos = GetPageInfos();
     foreach ($pageInfos as $pageInfo) {
         if (!GetCurrentUserGrantForDataSource($pageInfo['name'])->HasViewGrant()) {
             continue;
         }
         $shortCaption = $page->RenderText($pageInfo['short_caption']);
         $pageList->AddPage(new PageLink($page->RenderText($pageInfo['caption']), $pageInfo['filename'], $shortCaption, $currentPageFilename == $pageInfo['filename'], $pageInfo['add_separator'], $page->RenderText($pageInfo['group_name'])));
     }
     return $pageList;
 }
开发者ID:outsourcinggithub,项目名称:outsourcing,代码行数:18,代码来源:page_list.php

示例6: GetPageList

 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     $result->AddGroup($this->RenderText('Default'));
     if (GetCurrentUserGrantForDataSource('GE.BEBEDOR')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('BEBEDOR'), 'GE.BEBEDOR.php', $this->RenderText('BEBEDOR'), $currentPageCaption == $this->RenderText('BEBEDOR'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.CATEGORIA_INTERES')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('CATEGORIA INTERES'), 'GE.CATEGORIA_INTERES.php', $this->RenderText('CATEGORIA INTERES'), $currentPageCaption == $this->RenderText('CATEGORIA INTERES'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.CIUDAD')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('CIUDAD'), 'GE.CIUDAD.php', $this->RenderText('CIUDAD'), $currentPageCaption == $this->RenderText('CIUDAD'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.COLOR_OJOS')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('COLOR OJOS'), 'GE.COLOR_OJOS.php', $this->RenderText('COLOR OJOS'), $currentPageCaption == $this->RenderText('COLOR OJOS'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.webreports')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Webreports'), 'GE.webreports.php', $this->RenderText('Webreports'), $currentPageCaption == $this->RenderText('Webreports'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.webreport_style')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Webreport Style'), 'GE.webreport_style.php', $this->RenderText('Webreport Style'), $currentPageCaption == $this->RenderText('Webreport Style'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.webreport_sql')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Webreport Sql'), 'GE.webreport_sql.php', $this->RenderText('Webreport Sql'), $currentPageCaption == $this->RenderText('Webreport Sql'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.WINK')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('WINK'), 'GE.WINK.php', $this->RenderText('WINK'), $currentPageCaption == $this->RenderText('WINK'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.webreport_admin')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Webreport Admin'), 'GE.webreport_admin.php', $this->RenderText('Webreport Admin'), $currentPageCaption == $this->RenderText('Webreport Admin'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.VISITA')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('VISITA'), 'GE.VISITA.php', $this->RenderText('VISITA'), $currentPageCaption == $this->RenderText('VISITA'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.TIPO_RELACION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('TIPO RELACION'), 'GE.TIPO_RELACION.php', $this->RenderText('TIPO RELACION'), $currentPageCaption == $this->RenderText('TIPO RELACION'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.SALARIO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('SALARIO'), 'GE.SALARIO.php', $this->RenderText('SALARIO'), $currentPageCaption == $this->RenderText('SALARIO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.RELIGION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('RELIGION'), 'GE.RELIGION.php', $this->RenderText('RELIGION'), $currentPageCaption == $this->RenderText('RELIGION'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLEXRELIGION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLEXRELIGION'), 'GE.PERSONA_DISPONIBLEXRELIGION.php', $this->RenderText('PERSONA DISPONIBLEXRELIGION'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLEXRELIGION'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLEXOCUPACION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLEXOCUPACION'), 'GE.PERSONA_DISPONIBLEXOCUPACION.php', $this->RenderText('PERSONA DISPONIBLEXOCUPACION'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLEXOCUPACION'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLEXMASCOTA')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLEXMASCOTA'), 'GE.PERSONA_DISPONIBLEXMASCOTA.php', $this->RenderText('PERSONA DISPONIBLEXMASCOTA'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLEXMASCOTA'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLEXINTERES')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLEXINTERES'), 'GE.PERSONA_DISPONIBLEXINTERES.php', $this->RenderText('PERSONA DISPONIBLEXINTERES'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLEXINTERES'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLEXEJERCICIO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLEXEJERCICIO'), 'GE.PERSONA_DISPONIBLEXEJERCICIO.php', $this->RenderText('PERSONA DISPONIBLEXEJERCICIO'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLEXEJERCICIO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLEXCOLOR_PELO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLEXCOLOR PELO'), 'GE.PERSONA_DISPONIBLEXCOLOR_PELO.php', $this->RenderText('PERSONA DISPONIBLEXCOLOR PELO'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLEXCOLOR PELO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLEXIDIOMA')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLEXIDIOMA'), 'GE.PERSONA_DISPONIBLEXIDIOMA.php', $this->RenderText('PERSONA DISPONIBLEXIDIOMA'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLEXIDIOMA'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA_DISPONIBLE')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA DISPONIBLE'), 'GE.PERSONA_DISPONIBLE.php', $this->RenderText('PERSONA DISPONIBLE'), $currentPageCaption == $this->RenderText('PERSONA DISPONIBLE'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PERSONA')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PERSONA'), 'GE.PERSONA.php', $this->RenderText('PERSONA'), $currentPageCaption == $this->RenderText('PERSONA'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PARAMETROS')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PARAMETROS'), 'GE.PARAMETROS.php', $this->RenderText('PARAMETROS'), $currentPageCaption == $this->RenderText('PARAMETROS'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.PAIS')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('PAIS'), 'GE.PAIS.php', $this->RenderText('PAIS'), $currentPageCaption == $this->RenderText('PAIS'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.OCUPACIONXCATEGORIA_OCUPACION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('OCUPACIONXCATEGORIA OCUPACION'), 'GE.OCUPACIONXCATEGORIA_OCUPACION.php', $this->RenderText('OCUPACIONXCATEGORIA OCUPACION'), $currentPageCaption == $this->RenderText('OCUPACIONXCATEGORIA OCUPACION'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.OCUPACION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('OCUPACION'), 'GE.OCUPACION.php', $this->RenderText('OCUPACION'), $currentPageCaption == $this->RenderText('OCUPACION'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.MASCOTA')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('MASCOTA'), 'GE.MASCOTA.php', $this->RenderText('MASCOTA'), $currentPageCaption == $this->RenderText('MASCOTA'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.NIVEL_EDUCACION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('NIVEL EDUCACION'), 'GE.NIVEL_EDUCACION.php', $this->RenderText('NIVEL EDUCACION'), $currentPageCaption == $this->RenderText('NIVEL EDUCACION'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.INTERESXCATEGORIA_INTERES')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('INTERESXCATEGORIA INTERES'), 'GE.INTERESXCATEGORIA_INTERES.php', $this->RenderText('INTERESXCATEGORIA INTERES'), $currentPageCaption == $this->RenderText('INTERESXCATEGORIA INTERES'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.INTERES')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('INTERES'), 'GE.INTERES.php', $this->RenderText('INTERES'), $currentPageCaption == $this->RenderText('INTERES'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.IDIOMA')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('IDIOMA'), 'GE.IDIOMA.php', $this->RenderText('IDIOMA'), $currentPageCaption == $this->RenderText('IDIOMA'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.GENERO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('GENERO'), 'GE.GENERO.php', $this->RenderText('GENERO'), $currentPageCaption == $this->RenderText('GENERO'), false, $this->RenderText('Default')));
//.........这里部分代码省略.........
开发者ID:kcallow,项目名称:MatchMe,代码行数:101,代码来源:GE.PERSONA.php

示例7: GetPageList

 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     $result->AddGroup($this->RenderText('Transacciones'));
     $result->AddGroup($this->RenderText('Relaciones'));
     $result->AddGroup($this->RenderText('Paramétricas'));
     $result->AddGroup($this->RenderText('Maestras'));
     if (GetCurrentUserGrantForDataSource('public.ods_actividad')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Actividad'), 'actividad.php', $this->RenderText('Actividad'), $currentPageCaption == $this->RenderText('Actividad'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_area')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Area'), 'area.php', $this->RenderText('Area'), $currentPageCaption == $this->RenderText('Area'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_bien')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Bien'), 'bien.php', $this->RenderText('Bien'), $currentPageCaption == $this->RenderText('Bien'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_empresa')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Empresa'), 'empresa.php', $this->RenderText('Empresa'), $currentPageCaption == $this->RenderText('Empresa'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_espacio')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Espacio'), 'espacio.php', $this->RenderText('Espacio'), $currentPageCaption == $this->RenderText('Espacio'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_insumo')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Insumo'), 'insumo.php', $this->RenderText('Insumo'), $currentPageCaption == $this->RenderText('Insumo'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_lectura')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Lectura'), 'lectura.php', $this->RenderText('Lectura'), $currentPageCaption == $this->RenderText('Lectura'), false, $this->RenderText('Transacciones')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_lugar')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Lugar'), 'lugar.php', $this->RenderText('Lugar'), $currentPageCaption == $this->RenderText('Lugar'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_ocupa')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Ocupa (Area / Espacio)'), 'ocupa.php', $this->RenderText('Ocupa'), $currentPageCaption == $this->RenderText('Ocupa (Area / Espacio)'), false, $this->RenderText('Relaciones')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_origen_lectura')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Origen Lectura'), 'origen_lectura.php', $this->RenderText('Origen Lectura'), $currentPageCaption == $this->RenderText('Origen Lectura'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_origen')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Origen'), 'origen.php', $this->RenderText('Origen'), $currentPageCaption == $this->RenderText('Origen'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_periodicidad')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Periodicidad'), 'periodicidad.php', $this->RenderText('Periodicidad'), $currentPageCaption == $this->RenderText('Periodicidad'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_persona')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Persona'), 'persona.php', $this->RenderText('Persona'), $currentPageCaption == $this->RenderText('Persona'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_realiza')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Realiza (Persona / Tarea)'), 'realiza.php', $this->RenderText('Realiza'), $currentPageCaption == $this->RenderText('Realiza (Persona / Tarea)'), false, $this->RenderText('Relaciones')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_requiere')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Requiere (Actividad / Insumo)'), 'requiere.php', $this->RenderText('Requiere'), $currentPageCaption == $this->RenderText('Requiere (Actividad / Insumo)'), false, $this->RenderText('Relaciones')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_tarea')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Tarea'), 'tarea.php', $this->RenderText('Tarea'), $currentPageCaption == $this->RenderText('Tarea'), false, $this->RenderText('Transacciones')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_tarea_plan')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Tarea Plan'), 'tarea_plan.php', $this->RenderText('Tarea Plan'), $currentPageCaption == $this->RenderText('Tarea Plan'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_tipo_bien')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Tipo Bien'), 'tipo_bien.php', $this->RenderText('Tipo Bien'), $currentPageCaption == $this->RenderText('Tipo Bien'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_tipo_espacio')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Tipo Espacio'), 'tipo_espacio.php', $this->RenderText('Tipo Espacio'), $currentPageCaption == $this->RenderText('Tipo Espacio'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_tipo_insumo')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Tipo Insumo'), 'tipo_insumo.php', $this->RenderText('Tipo Insumo'), $currentPageCaption == $this->RenderText('Tipo Insumo'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_tipo_persona')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Tipo Persona'), 'tipo_persona.php', $this->RenderText('Tipo Persona'), $currentPageCaption == $this->RenderText('Tipo Persona'), false, $this->RenderText('Paramétricas')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_accion')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Accion (Espacio / Tarea)'), 'accion.php', $this->RenderText('Accion'), $currentPageCaption == $this->RenderText('Accion (Espacio / Tarea)'), false, $this->RenderText('Maestras')));
     }
     if (GetCurrentUserGrantForDataSource('public.ods_metodologia')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Metodologia de Acción'), 'metodologia.php', $this->RenderText('Metodologia'), $currentPageCaption == $this->RenderText('Metodologia de Acción'), false, $this->RenderText('Paramétricas')));
     }
     if (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddGroup('Admin area');
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, false, 'Admin area'));
     }
     return $result;
 }
开发者ID:jsrxar,项目名称:dto,代码行数:83,代码来源:actividad.php


注:本文中的PageList::AddGroup方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。