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


PHP PMA_NodeFactory::getInstance方法代码示例

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


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

示例1: testConstructor

 /**
  * Test for __construct
  *
  * @return void
  */
 public function testConstructor()
 {
     $parent = PMA_NodeFactory::getInstance('Node_Procedure_Container');
     $this->assertArrayHasKey('text', $parent->links);
     $this->assertContains('db_routines.php', $parent->links['text']);
     $this->assertEquals('procedures', $parent->real_name);
 }
开发者ID:yonh,项目名称:php-mvc,代码行数:12,代码来源:PMA_Node_Procedure_Container_test.php

示例2: testConstructor

 /**
  * Test for __construct
  *
  * @return void
  */
 public function testConstructor()
 {
     $parent = PMA_NodeFactory::getInstance('Node_Database');
     $this->assertArrayHasKey('text', $parent->links);
     $this->assertContains('db_structure.php', $parent->links['text']);
     $this->assertContains('database', $parent->classes);
 }
开发者ID:roccivic,项目名称:phpmyadmin,代码行数:12,代码来源:PMA_Node_Database_test.php

示例3: testConstructor

 /**
  * Test for __construct
  *
  * @return void
  */
 public function testConstructor()
 {
     $parent = PMA_NodeFactory::getInstance('Node_View');
     $this->assertArrayHasKey('text', $parent->links);
     $this->assertContains('sql.php', $parent->links['text']);
     $this->assertContains('b_props', $parent->icon);
     $this->assertContains('view', $parent->classes);
 }
开发者ID:roccivic,项目名称:phpmyadmin,代码行数:13,代码来源:PMA_Node_View_test.php

示例4: testConstructor

 /**
  * Test for __construct
  *
  * @return void
  */
 public function testConstructor()
 {
     $parent = PMA_NodeFactory::getInstance('Node_View_Container');
     $this->assertArrayHasKey('text', $parent->links);
     $this->assertContains('db_structure.php', $parent->links['text']);
     $this->assertEquals('views', $parent->real_name);
     $this->assertContains('viewContainer', $parent->classes);
 }
开发者ID:FilipeRamosFernandes,项目名称:phpmyadmin,代码行数:13,代码来源:PMA_Node_View_Container_test.php

示例5: testGetHtmlForControlButtons

 /**
  * Tests getHtmlForControlButtons() method
  *
  * @return void
  * @test
  */
 public function testGetHtmlForControlButtons()
 {
     $parent = PMA_NodeFactory::getInstance('Node_Database', 'parent');
     $parent->addChild($this->object);
     $this->object->expects($this->once())->method('getItemType')->will($this->returnValue('itemType'));
     $html = $this->object->getHtmlForControlButtons();
     $this->assertStringStartsWith('<span class="navItemControls">', $html);
     $this->assertStringEndsWith('</span>', $html);
     $this->assertContains('<a href="navigation.php?' . PMA_URL_getCommon() . '&hideNavItem=true&itemType=itemType&itemName=child' . '&dbName=parent" class="hideNavItem ajax">', $html);
 }
开发者ID:FilipeRamosFernandes,项目名称:phpmyadmin,代码行数:16,代码来源:PMA_Node_DatabaseChild_test.php

示例6: __construct

 /**
  * Initialises the class
  *
  * @param string $name An identifier for the new node
  *
  * @return Node_Database_Container
  */
 public function __construct($name)
 {
     parent::__construct($name, Node::CONTAINER);
     $new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new database', 'New'));
     $new->isNew = $GLOBALS['is_create_db_priv'];
     $new->icon = PMA_Util::getImage('b_newdb.png', '');
     $new->links = array('text' => 'server_databases.php?server=' . $GLOBALS['server'] . '&amp;token=' . $GLOBALS['token'], 'icon' => 'server_databases.php?server=' . $GLOBALS['server'] . '&amp;token=' . $GLOBALS['token']);
     $new->classes = 'new_database italics';
     $this->addChild($new);
 }
开发者ID:yszar,项目名称:linuxwp,代码行数:17,代码来源:Node_Database_Container.class.php

示例7: __construct

 /**
  * Initialises the class
  *
  * @return Node_Index_Container
  */
 public function __construct()
 {
     parent::__construct(__('Indexes'), Node::CONTAINER);
     $this->icon = PMA_Util::getImage('b_index.png', '');
     $this->links = array('text' => 'tbl_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s' . '&amp;token=' . $GLOBALS['token'], 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s' . '&amp;token=' . $GLOBALS['token']);
     $this->real_name = 'indexes';
     $new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new index', 'New'));
     $new->isNew = true;
     $new->icon = PMA_Util::getImage('b_index_add.png', '');
     $new->links = array('text' => 'tbl_indexes.php?server=' . $GLOBALS['server'] . '&amp;create_index=1&amp;added_fields=2' . '&amp;db=%3$s&amp;table=%2$s&amp;token=' . $GLOBALS['token'], 'icon' => 'tbl_indexes.php?server=' . $GLOBALS['server'] . '&amp;create_index=1&amp;added_fields=2' . '&amp;db=%3$s&amp;table=%2$s&amp;token=' . $GLOBALS['token']);
     $new->classes = 'new_index italics';
     $this->addChild($new);
 }
开发者ID:mindfeederllc,项目名称:openemr,代码行数:18,代码来源:Node_Index_Container.class.php

示例8: __construct

 /**
  * Initialises the class
  *
  * @return Node_Event_Container
  */
 public function __construct()
 {
     parent::__construct(__('Events'), Node::CONTAINER);
     $this->icon = PMA_Util::getImage('b_events.png', '');
     $this->links = array('text' => 'db_events.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $_SESSION[' PMA_token '], 'icon' => 'db_events.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $_SESSION[' PMA_token ']);
     $this->real_name = 'events';
     $new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new event', 'New'));
     $new->isNew = true;
     $new->icon = PMA_Util::getImage('b_event_add.png', '');
     $new->links = array('text' => 'db_events.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token '] . '&add_item=1', 'icon' => 'db_events.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token '] . '&add_item=1');
     $new->classes = 'new_event italics';
     $this->addChild($new);
 }
开发者ID:hewenhao2008,项目名称:phpmyadmin,代码行数:18,代码来源:Node_Event_Container.class.php

示例9: __construct

 /**
  * Initialises the class
  *
  * @return Node_Column_Container
  */
 public function __construct()
 {
     parent::__construct(__('Columns'), Node::CONTAINER);
     $this->icon = PMA_Util::getImage('pause.png', '');
     $this->links = array('text' => 'tbl_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s' . '&amp;token=' . $GLOBALS['token'], 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s' . '&amp;token=' . $GLOBALS['token']);
     $this->real_name = 'columns';
     $new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new column', 'New'));
     $new->isNew = true;
     $new->icon = PMA_Util::getImage('b_column_add.png', '');
     $new->links = array('text' => 'tbl_addfield.php?server=' . $GLOBALS['server'] . '&amp;db=%3$s&amp;table=%2$s' . '&amp;field_where=last&after_field=' . '&amp;token=' . $GLOBALS['token'], 'icon' => 'tbl_addfield.php?server=' . $GLOBALS['server'] . '&amp;db=%3$s&amp;table=%2$s' . '&amp;field_where=last&after_field=' . '&amp;token=' . $GLOBALS['token']);
     $new->classes = 'new_column italics';
     $this->addChild($new);
 }
开发者ID:mindfeederllc,项目名称:openemr,代码行数:18,代码来源:Node_Column_Container.class.php

示例10: __construct

 /**
  * Initialises the class
  *
  * @return Node_View_Container
  */
 public function __construct()
 {
     parent::__construct(__('Views'), Node::CONTAINER);
     $this->icon = PMA_Util::getImage('b_views.png', '');
     $this->links = array('text' => 'db_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $GLOBALS['token'], 'icon' => 'db_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $GLOBALS['token']);
     $this->real_name = 'views';
     $new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new view', 'New'));
     $new->isNew = true;
     $new->icon = PMA_Util::getImage('b_view_add.png', '');
     $new->links = array('text' => 'view_create.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $GLOBALS['token'], 'icon' => 'view_create.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $GLOBALS['token']);
     $new->classes = 'new_view italics';
     $this->addChild($new);
 }
开发者ID:mindfeederllc,项目名称:openemr,代码行数:18,代码来源:Node_View_Container.class.php

示例11: __construct

 /**
  * Initialises the class
  *
  * @return Node_Column_Container
  */
 public function __construct()
 {
     parent::__construct(__('Functions'), Node::CONTAINER);
     $this->icon = PMA_Util::getImage('b_routines.png');
     $this->links = array('text' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $GLOBALS['token'], 'icon' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $GLOBALS['token']);
     $this->real_name = 'functions';
     $new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new function', 'New'));
     $new->isNew = true;
     $new->icon = PMA_Util::getImage('b_routine_add.png', '');
     $new->links = array('text' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $GLOBALS['token'] . '&add_item=1&amp;item_type=FUNCTION', 'icon' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $GLOBALS['token'] . '&add_item=1&amp;item_type=FUNCTION');
     $new->classes = 'new_function italics';
     $this->addChild($new);
 }
开发者ID:mindfeederllc,项目名称:openemr,代码行数:18,代码来源:Node_Function_Container.class.php

示例12: __construct

 /**
  * Initialises the class
  *
  * @return Node_Procedure_Container
  */
 public function __construct()
 {
     parent::__construct(__('Procedures'), Node::CONTAINER);
     $this->icon = PMA_Util::getImage('b_routines.png', __('Procedures'));
     $this->links = array('text' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $_SESSION[' PMA_token '] . '&amp;type=PROCEDURE', 'icon' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $_SESSION[' PMA_token '] . '&amp;type=PROCEDURE');
     $this->real_name = 'procedures';
     $new_label = _pgettext('Create new procedure', 'New');
     $new = PMA_NodeFactory::getInstance('Node', $new_label);
     $new->isNew = true;
     $new->icon = PMA_Util::getImage('b_routine_add.png', $new_label);
     $new->links = array('text' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token '] . '&add_item=1', 'icon' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token '] . '&add_item=1');
     $new->classes = 'new_procedure italics';
     $this->addChild($new);
 }
开发者ID:saisai,项目名称:phpmyadmin,代码行数:19,代码来源:Node_Procedure_Container.class.php

示例13: __construct

 /**
  * Initialises the class
  */
 public function __construct()
 {
     parent::__construct(__('Tables'), Node::CONTAINER);
     $this->icon = PMA_Util::getImage('b_browse.png', __('Tables'));
     $this->links = array('text' => 'db_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;tbl_type=table' . '&amp;token=' . $_SESSION[' PMA_token '], 'icon' => 'db_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;tbl_type=table' . '&amp;token=' . $_SESSION[' PMA_token ']);
     $this->real_name = 'tables';
     $this->classes = 'tableContainer subContainer';
     $new_label = _pgettext('Create new table', 'New');
     $new = PMA_NodeFactory::getInstance('Node', $new_label);
     $new->isNew = true;
     $new->icon = PMA_Util::getImage('b_table_add.png', $new_label);
     $new->links = array('text' => 'tbl_create.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token '], 'icon' => 'tbl_create.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token ']);
     $new->classes = 'new_table italics';
     $this->addChild($new);
 }
开发者ID:FuhrerMalkovich,项目名称:Blogpost,代码行数:18,代码来源:Node_Table_Container.class.php

示例14: __construct

 /**
  * Initialises the class
  *
  * @return Node_Table_Container
  */
 public function __construct()
 {
     parent::__construct(__('Tables'), Node::CONTAINER);
     $this->icon = PMA_Util::getImage('b_browse.png', '');
     $this->links = array('text' => 'db_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $GLOBALS['token'], 'icon' => 'db_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $GLOBALS['token']);
     if ($GLOBALS['cfg']['NavigationTreeEnableGrouping']) {
         $this->separator = $GLOBALS['cfg']['NavigationTreeTableSeparator'];
         $this->separator_depth = (int) $GLOBALS['cfg']['NavigationTreeTableLevel'];
     }
     $this->real_name = 'tables';
     $new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new table', 'New'));
     $new->isNew = true;
     $new->icon = PMA_Util::getImage('b_table_add.png', '');
     $new->links = array('text' => 'tbl_create.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $GLOBALS['token'], 'icon' => 'tbl_create.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $GLOBALS['token']);
     $new->classes = 'new_table italics';
     $this->addChild($new);
 }
开发者ID:mindfeederllc,项目名称:openemr,代码行数:22,代码来源:Node_Table_Container.class.php

示例15: __construct

 /**
  * Initialises the class
  *
  * @return Node_View_Container
  */
 public function __construct()
 {
     parent::__construct(__('Views'), Node::CONTAINER);
     $this->icon = PMA_Util::getImage('b_views.png', __('Views'));
     $this->links = array('text' => 'db_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;tbl_type=view' . '&amp;token=' . $_SESSION[' PMA_token '], 'icon' => 'db_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;tbl_type=view' . '&amp;token=' . $_SESSION[' PMA_token ']);
     if ($GLOBALS['cfg']['NavigationTreeEnableGrouping']) {
         $this->separator = $GLOBALS['cfg']['NavigationTreeTableSeparator'];
         $this->separator_depth = (int) $GLOBALS['cfg']['NavigationTreeTableLevel'];
     }
     $this->classes = 'viewContainer subContainer';
     $this->real_name = 'views';
     $new_label = _pgettext('Create new view', 'New');
     $new = PMA_NodeFactory::getInstance('Node', $new_label);
     $new->isNew = true;
     $new->icon = PMA_Util::getImage('b_view_add.png', $new_label);
     $new->links = array('text' => 'view_create.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token '], 'icon' => 'view_create.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token ']);
     $new->classes = 'new_view italics';
     $this->addChild($new);
 }
开发者ID:mercysmart,项目名称:naikelas,代码行数:24,代码来源:Node_View_Container.class.php


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