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


PHP HasAdminPage函数代码示例

本文整理汇总了PHP中HasAdminPage函数的典型用法代码示例。如果您正苦于以下问题:PHP HasAdminPage函数的具体用法?PHP HasAdminPage怎么用?PHP HasAdminPage使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: 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

示例2: GetPageList

 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     if (GetCurrentUserGrantForDataSource('public.office_holder')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Office Holders'), 'public.office_holder.php', $this->RenderText('Office Holders'), $currentPageCaption == $this->RenderText('Office Holders')));
     }
     if (GetCurrentUserGrantForDataSource('public.office')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Political Offices'), 'public.office.php', $this->RenderText('Political Offices'), $currentPageCaption == $this->RenderText('Political Offices')));
     }
     if (GetCurrentUserGrantForDataSource('public.office_docs')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Political Office Filing Documents'), 'public.office_docs.php', $this->RenderText('Political Office Filing Documents'), $currentPageCaption == $this->RenderText('Political Office Filing Documents')));
     }
     if (GetCurrentUserGrantForDataSource('public.election_div')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Election Divisions'), 'public.election_div.php', $this->RenderText('Election Divisions'), $currentPageCaption == $this->RenderText('Election Divisions')));
     }
     if (GetCurrentUserGrantForDataSource('public.election_div_docs')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Election Division Filing Documents'), 'public.election_div_docs.php', $this->RenderText('Election Division Filing Documents'), $currentPageCaption == $this->RenderText('Election Division Filing Documents')));
     }
     if (GetCurrentUserGrantForDataSource('public.district')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Political Districts'), 'public.district.php', $this->RenderText('Political Districts'), $currentPageCaption == $this->RenderText('Political Districts')));
     }
     if (GetCurrentUserGrantForDataSource('public.office_position')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Political Office Positions'), 'public.office_position.php', $this->RenderText('Political Office Positions'), $currentPageCaption == $this->RenderText('Political Office Positions')));
     }
     if (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, true));
     }
     return $result;
 }
开发者ID:blakeHelm,项目名称:BallotPath,代码行数:30,代码来源:public.office_docs.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);
     if (GetCurrentUserGrantForDataSource('hometext')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Home Page Text'), 'HomePageText.php', $this->RenderText('Home Page Text'), $currentPageCaption == $this->RenderText('Home Page Text')));
     }
     if (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, true));
     }
     return $result;
 }
开发者ID:howareyoucolin,项目名称:demo,代码行数:12,代码来源:HomePageText.php

示例5: 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('Project'), $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('Pay Period')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Pay Period'), 'Pay_Period.php', $this->RenderText('Pay Period'), $currentPageCaption == $this->RenderText('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 (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddGroup('Admin area');
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'app_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, false, 'Admin area'));
     }
     return $result;
 }
开发者ID:CivicInfoBC,项目名称:workplan.gov_ver_1.19,代码行数:44,代码来源:total_allocated_hours_small.php

示例6: GetPageList


//.........这里部分代码省略.........
     }
     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')));
     }
     if (GetCurrentUserGrantForDataSource('GE.FUMADOR')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('FUMADOR'), 'GE.FUMADOR.php', $this->RenderText('FUMADOR'), $currentPageCaption == $this->RenderText('FUMADOR'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.FRECUENCIA_EJERCICIO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('FRECUENCIA EJERCICIO'), 'GE.FRECUENCIA_EJERCICIO.php', $this->RenderText('FRECUENCIA EJERCICIO'), $currentPageCaption == $this->RenderText('FRECUENCIA EJERCICIO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.EVENTO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('EVENTO'), 'GE.EVENTO.php', $this->RenderText('EVENTO'), $currentPageCaption == $this->RenderText('EVENTO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.FOTO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('FOTO'), 'GE.FOTO.php', $this->RenderText('FOTO'), $currentPageCaption == $this->RenderText('FOTO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.ESTADO_CIVIL')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('ESTADO CIVIL'), 'GE.ESTADO_CIVIL.php', $this->RenderText('ESTADO CIVIL'), $currentPageCaption == $this->RenderText('ESTADO CIVIL'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.EJERCICIO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('EJERCICIO'), 'GE.EJERCICIO.php', $this->RenderText('EJERCICIO'), $currentPageCaption == $this->RenderText('EJERCICIO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.EDAD')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('EDAD'), 'GE.EDAD.php', $this->RenderText('EDAD'), $currentPageCaption == $this->RenderText('EDAD'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.CONTEXTURA')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('CONTEXTURA'), 'GE.CONTEXTURA.php', $this->RenderText('CONTEXTURA'), $currentPageCaption == $this->RenderText('CONTEXTURA'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.COLOR_PIEL')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('COLOR PIEL'), 'GE.COLOR_PIEL.php', $this->RenderText('COLOR PIEL'), $currentPageCaption == $this->RenderText('COLOR PIEL'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.COLOR_PELO')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('COLOR PELO'), 'GE.COLOR_PELO.php', $this->RenderText('COLOR PELO'), $currentPageCaption == $this->RenderText('COLOR PELO'), false, $this->RenderText('Default')));
     }
     if (GetCurrentUserGrantForDataSource('GE.CATEGORIA_OCUPACION')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('CATEGORIA OCUPACION'), 'GE.CATEGORIA_OCUPACION.php', $this->RenderText('CATEGORIA OCUPACION'), $currentPageCaption == $this->RenderText('CATEGORIA OCUPACION'), 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:kcallow,项目名称:MatchMe,代码行数:101,代码来源:GE.PERSONA.php

示例7: 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

示例8: 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

示例9: GetPageList

 public function GetPageList()
 {
     $currentPageCaption = $this->GetShortCaption();
     $result = new PageList($this);
     if (GetCurrentUserGrantForDataSource('act_movimientos')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Act Movimientos'), 'act_movimientos.php', $this->RenderText('Act Movimientos'), $currentPageCaption == $this->RenderText('Act Movimientos')));
     }
     if (GetCurrentUserGrantForDataSource('act_ordenes')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Act Ordenes'), 'act_ordenes.php', $this->RenderText('Act Ordenes'), $currentPageCaption == $this->RenderText('Act Ordenes')));
     }
     if (GetCurrentUserGrantForDataSource('activos')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Activos'), 'activos.php', $this->RenderText('Activos'), $currentPageCaption == $this->RenderText('Activos')));
     }
     if (GetCurrentUserGrantForDataSource('almacen')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Almacen'), 'almacen.php', $this->RenderText('Almacen'), $currentPageCaption == $this->RenderText('Almacen')));
     }
     if (GetCurrentUserGrantForDataSource('cartera')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Cartera'), 'cartera.php', $this->RenderText('Cartera'), $currentPageCaption == $this->RenderText('Cartera')));
     }
     if (GetCurrentUserGrantForDataSource('clasecuenta')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Clasecuenta'), 'clasecuenta.php', $this->RenderText('Clasecuenta'), $currentPageCaption == $this->RenderText('Clasecuenta')));
     }
     if (GetCurrentUserGrantForDataSource('clientes')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Clientes'), 'clientes.php', $this->RenderText('Clientes'), $currentPageCaption == $this->RenderText('Clientes')));
     }
     if (GetCurrentUserGrantForDataSource('cod_departamentos')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Cod Departamentos'), 'cod_departamentos.php', $this->RenderText('Cod Departamentos'), $currentPageCaption == $this->RenderText('Cod Departamentos')));
     }
     if (GetCurrentUserGrantForDataSource('cod_municipios_dptos')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Cod Municipios Dptos'), 'cod_municipios_dptos.php', $this->RenderText('Cod Municipios Dptos'), $currentPageCaption == $this->RenderText('Cod Municipios Dptos')));
     }
     if (GetCurrentUserGrantForDataSource('cod_paises')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Cod Paises'), 'cod_paises.php', $this->RenderText('Cod Paises'), $currentPageCaption == $this->RenderText('Cod Paises')));
     }
     if (GetCurrentUserGrantForDataSource('cuentas')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Cuentas'), 'cuentas.php', $this->RenderText('Cuentas'), $currentPageCaption == $this->RenderText('Cuentas')));
     }
     if (GetCurrentUserGrantForDataSource('cuentasfrecuentes')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Cuentasfrecuentes'), 'cuentasfrecuentes.php', $this->RenderText('Cuentasfrecuentes'), $currentPageCaption == $this->RenderText('Cuentasfrecuentes')));
     }
     if (GetCurrentUserGrantForDataSource('egresos')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Egresos'), 'egresos.php', $this->RenderText('Egresos'), $currentPageCaption == $this->RenderText('Egresos')));
     }
     if (GetCurrentUserGrantForDataSource('empresa')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Empresa'), 'empresa.php', $this->RenderText('Empresa'), $currentPageCaption == $this->RenderText('Empresa')));
     }
     if (GetCurrentUserGrantForDataSource('facturas')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Facturas'), 'facturas.php', $this->RenderText('Facturas'), $currentPageCaption == $this->RenderText('Facturas')));
     }
     if (GetCurrentUserGrantForDataSource('gupocuentas')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Gupocuentas'), 'gupocuentas.php', $this->RenderText('Gupocuentas'), $currentPageCaption == $this->RenderText('Gupocuentas')));
     }
     if (GetCurrentUserGrantForDataSource('impret')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Impret'), 'impret.php', $this->RenderText('Impret'), $currentPageCaption == $this->RenderText('Impret')));
     }
     if (GetCurrentUserGrantForDataSource('imv')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Imv'), 'imv.php', $this->RenderText('Imv'), $currentPageCaption == $this->RenderText('Imv')));
     }
     if (GetCurrentUserGrantForDataSource('kardexmercancias')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Kardexmercancias'), 'kardexmercancias.php', $this->RenderText('Kardexmercancias'), $currentPageCaption == $this->RenderText('Kardexmercancias')));
     }
     if (GetCurrentUserGrantForDataSource('librodiario')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Librodiario'), 'librodiario.php', $this->RenderText('Librodiario'), $currentPageCaption == $this->RenderText('Librodiario')));
     }
     if (GetCurrentUserGrantForDataSource('proveedores')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Proveedores'), 'proveedores.php', $this->RenderText('Proveedores'), $currentPageCaption == $this->RenderText('Proveedores')));
     }
     if (GetCurrentUserGrantForDataSource('servicio')->HasViewGrant()) {
         $result->AddPage(new PageLink($this->RenderText('Servicio'), 'servicio.php', $this->RenderText('Servicio'), $currentPageCaption == $this->RenderText('Servicio')));
     }
     if (HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser()) {
         $result->AddPage(new PageLink($this->GetLocalizerCaptions()->GetMessageString('AdminPage'), 'phpgen_admin.php', $this->GetLocalizerCaptions()->GetMessageString('AdminPage'), false, true));
     }
     return $result;
 }
开发者ID:Kenovix,项目名称:san-miguel,代码行数:75,代码来源:cod_departamentos.php

示例10: GetAuthenticationViewData

 public function GetAuthenticationViewData()
 {
     return array('Enabled' => $this->GetShowUserAuthBar(), 'LoggedIn' => $this->IsCurrentUserLoggedIn(), 'CurrentUser' => array('Name' => $this->GetCurrentUserName(), 'Id' => $this->GetCurrentUserId()), 'CanChangeOwnPassword' => GetApplication()->GetUserManager()->CanChangeUserPassword() && GetApplication()->CanUserChangeOwnPassword(), 'isAdminPanelVisible' => HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser());
 }
开发者ID:outsourcinggithub,项目名称:outsourcing,代码行数:4,代码来源:page.php

示例11: GetAuthenticationViewData

 public function GetAuthenticationViewData()
 {
     return array('Enabled' => true, 'LoggedIn' => GetApplication()->IsCurrentUserLoggedIn(), 'CurrentUser' => array('Name' => GetApplication()->GetCurrentUser(), 'Id' => GetApplication()->GetCurrentUserId()), 'isAdminPanelVisible' => HasAdminPage() && GetApplication()->HasAdminGrantForCurrentUser());
 }
开发者ID:outsourcinggithub,项目名称:outsourcing,代码行数:4,代码来源:phpgen_admin.php


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