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


PHP Util::getImage方法代码示例

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


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

示例1: __construct

 /**
  * Initialises the class
  *
  * @param string $name     An identifier for the new node
  * @param int    $type     Type of node, may be one of CONTAINER or OBJECT
  * @param bool   $is_group Whether this object has been created
  *                         while grouping nodes
  */
 public function __construct($name, $type = Node::OBJECT, $is_group = false)
 {
     parent::__construct($name, $type, $is_group);
     $this->icon = PMA\libraries\Util::getImage('b_events.png');
     $this->links = array('text' => 'db_events.php?server=' . $GLOBALS['server'] . '&db=%2$s&item_name=%1$s&edit_item=1', 'icon' => 'db_events.php?server=' . $GLOBALS['server'] . '&db=%2$s&item_name=%1$s&export_item=1');
     $this->classes = 'event';
 }
开发者ID:phpmyadmin,项目名称:phpmyadmin,代码行数:15,代码来源:NodeEvent.php

示例2: getDisplay

 /**
  * Renders the navigation
  *
  * @return String HTML
  */
 public function getDisplay()
 {
     if (empty($GLOBALS['url_query'])) {
         $GLOBALS['url_query'] = URL::getCommon();
     }
     $link_url = URL::getCommon(array('ajax_request' => true));
     $class = ' class="list_container';
     if ($GLOBALS['cfg']['NavigationLinkWithMainPanel']) {
         $class .= ' synced';
     }
     if ($GLOBALS['cfg']['NavigationTreePointerEnable']) {
         $class .= ' highlight';
     }
     $class .= '"';
     $buffer = '<div id="pma_navigation">';
     $buffer .= '<div id="pma_navigation_resizer"></div>';
     $buffer .= '<div id="pma_navigation_collapser"></div>';
     $buffer .= '<div id="pma_navigation_content">';
     $buffer .= '<div id="pma_navigation_header">';
     $buffer .= sprintf('<a class="hide navigation_url" href="navigation.php%s"></a>', $link_url);
     $buffer .= $this->_logo();
     $buffer .= $this->_links();
     $buffer .= $this->_serverChoice();
     $buffer .= PMA\libraries\Util::getImage('ajax_clock_small.gif', __('Loading…'), array('style' => 'visibility: hidden; display:none', 'class' => 'throbber'));
     $buffer .= '</div>';
     // pma_navigation_header
     $buffer .= '<div id="pma_navigation_tree"' . $class . '>';
     return $buffer;
 }
开发者ID:phpmyadmin,项目名称:phpmyadmin,代码行数:34,代码来源:NavigationHeader.php

示例3: __construct

 /**
  * Initialises the class
  *
  * @param string $name     An identifier for the new node
  * @param int    $type     Type of node, may be one of CONTAINER or OBJECT
  * @param bool   $is_group Whether this object has been created
  *                         while grouping nodes
  */
 public function __construct($name, $type = Node::OBJECT, $is_group = false)
 {
     parent::__construct($name, $type, $is_group);
     $this->icon = PMA\libraries\Util::getImage('b_index.png', __('Index'));
     $this->links = array('text' => 'tbl_indexes.php?server=' . $GLOBALS['server'] . '&amp;db=%3$s&amp;table=%2$s&amp;index=%1$s' . '&amp;token=' . $_SESSION[' PMA_token '], 'icon' => 'tbl_indexes.php?server=' . $GLOBALS['server'] . '&amp;db=%3$s&amp;table=%2$s&amp;index=%1$s' . '&amp;token=' . $_SESSION[' PMA_token ']);
     $this->classes = 'index';
 }
开发者ID:pjiahao,项目名称:phpmyadmin,代码行数:15,代码来源:NodeIndex.php

示例4: __construct

 /**
  * Initialises the class
  *
  * @param string $name     An identifier for the new node
  * @param int    $type     Type of node, may be one of CONTAINER or OBJECT
  * @param bool   $is_group Whether this object has been created
  *                         while grouping nodes
  */
 public function __construct($name, $type = Node::OBJECT, $is_group = false)
 {
     parent::__construct($name, $type, $is_group);
     $this->icon = PMA\libraries\Util::getImage('b_routines.png', __('Procedure'));
     $this->links = array('text' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;item_name=%1$s&amp;item_type=PROCEDURE' . '&amp;edit_item=1', 'icon' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;item_name=%1$s&amp;item_type=PROCEDURE' . '&amp;execute_dialog=1');
     $this->classes = 'procedure';
 }
开发者ID:phpmyadmin,项目名称:phpmyadmin,代码行数:15,代码来源:NodeProcedure.php

示例5: __construct

 /**
  * Initialises the class
  *
  * @param string $name     An identifier for the new node
  * @param int    $type     Type of node, may be one of CONTAINER or OBJECT
  * @param bool   $is_group Whether this object has been created
  *                         while grouping nodes
  */
 public function __construct($name, $type = Node::OBJECT, $is_group = false)
 {
     parent::__construct($name, $type, $is_group);
     $this->icon = PMA\libraries\Util::getImage('b_props.png', __('View'));
     $this->links = array('text' => 'sql.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s&amp;pos=0', 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s');
     $this->classes = 'view';
 }
开发者ID:phpmyadmin,项目名称:phpmyadmin,代码行数:15,代码来源:NodeView.php

示例6: __construct

 /**
  * Initialises the class
  *
  * @param string $name     An identifier for the new node
  * @param int    $type     Type of node, may be one of CONTAINER or OBJECT
  * @param bool   $is_group Whether this object has been created
  *                         while grouping nodes
  */
 public function __construct($name, $type = Node::OBJECT, $is_group = false)
 {
     parent::__construct($name, $type, $is_group);
     $this->icon = PMA\libraries\Util::getImage('b_triggers.png');
     $this->links = array('text' => 'db_triggers.php?server=' . $GLOBALS['server'] . '&amp;db=%3$s&amp;item_name=%1$s&amp;edit_item=1' . '&amp;token=' . $_SESSION[' PMA_token '], 'icon' => 'db_triggers.php?server=' . $GLOBALS['server'] . '&amp;db=%3$s&amp;item_name=%1$s&amp;export_item=1' . '&amp;token=' . $_SESSION[' PMA_token ']);
     $this->classes = 'trigger';
 }
开发者ID:itgsod-philip-skalander,项目名称:phpmyadmin,代码行数:15,代码来源:NodeTrigger.php

示例7: getHtmlForControlButtons

 /**
  * Returns HTML for control buttons displayed infront of a node
  *
  * @return String HTML for control buttons
  */
 public function getHtmlForControlButtons()
 {
     $ret = '';
     $cfgRelation = PMA_getRelationsParam();
     if ($cfgRelation['navwork']) {
         $db = $this->realParent()->real_name;
         $item = $this->real_name;
         $ret = '<span class="navItemControls">' . '<a href="navigation.php' . PMA_URL_getCommon() . '&hideNavItem=true' . '&itemType=' . urlencode($this->getItemType()) . '&itemName=' . urlencode($item) . '&dbName=' . urlencode($db) . '"' . ' class="hideNavItem ajax">' . PMA\libraries\Util::getImage('lightbulb_off.png', __('Hide')) . '</a></span>';
     }
     return $ret;
 }
开发者ID:itgsod-philip-skalander,项目名称:phpmyadmin,代码行数:16,代码来源:NodeDatabaseChild.php

示例8: __construct

 /**
  * Initialises the class
  *
  * @param string $name An identifier for the new node
  */
 public function __construct($name)
 {
     parent::__construct($name, Node::CONTAINER);
     if ($GLOBALS['is_create_db_priv'] && $GLOBALS['cfg']['ShowCreateDb'] !== false) {
         $new = NodeFactory::getInstance('Node', _pgettext('Create new database', 'New'));
         $new->isNew = true;
         $new->icon = PMA\libraries\Util::getImage('b_newdb.png', '');
         $new->links = array('text' => 'server_databases.php?server=' . $GLOBALS['server'], 'icon' => 'server_databases.php?server=' . $GLOBALS['server']);
         $new->classes = 'new_database italics';
         $this->addChild($new);
     }
 }
开发者ID:phpmyadmin,项目名称:phpmyadmin,代码行数:17,代码来源:NodeDatabaseContainer.php

示例9: getHtmlForControlButtons

 /**
  * Returns HTML for control buttons displayed infront of a node
  *
  * @return String HTML for control buttons
  */
 public function getHtmlForControlButtons()
 {
     $ret = '';
     $cfgRelation = PMA_getRelationsParam();
     if ($cfgRelation['navwork']) {
         $db = $this->realParent()->real_name;
         $item = $this->real_name;
         $params = array('hideNavItem' => true, 'itemType' => $this->getItemType(), 'itemName' => $item, 'dbName' => $db);
         $ret = '<span class="navItemControls">' . '<a href="navigation.php' . URL::getCommon($params) . '"' . ' class="hideNavItem ajax">' . PMA\libraries\Util::getImage('hide.png', __('Hide')) . '</a></span>';
     }
     return $ret;
 }
开发者ID:phpmyadmin,项目名称:phpmyadmin,代码行数:17,代码来源:NodeDatabaseChild.php

示例10: __construct

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

示例11: __construct

 /**
  * Initialises the class
  */
 public function __construct()
 {
     parent::__construct(__('Triggers'), Node::CONTAINER);
     $this->icon = PMA\libraries\Util::getImage('b_triggers.png');
     $this->links = array('text' => 'db_triggers.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s&amp;token=' . $_SESSION[' PMA_token '], 'icon' => 'db_triggers.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s&amp;token=' . $_SESSION[' PMA_token ']);
     $this->real_name = 'triggers';
     $new = NodeFactory::getInstance('Node', _pgettext('Create new trigger', 'New'));
     $new->isNew = true;
     $new->icon = PMA\libraries\Util::getImage('b_trigger_add.png', '');
     $new->links = array('text' => 'db_triggers.php?server=' . $GLOBALS['server'] . '&amp;db=%3$s&amp;token=' . $_SESSION[' PMA_token '] . '&amp;add_item=1', 'icon' => 'db_triggers.php?server=' . $GLOBALS['server'] . '&amp;db=%3$s&amp;token=' . $_SESSION[' PMA_token '] . '&amp;add_item=1');
     $new->classes = 'new_trigger italics';
     $this->addChild($new);
 }
开发者ID:itgsod-philip-skalander,项目名称:phpmyadmin,代码行数:16,代码来源:NodeTriggerContainer.php

示例12: __construct

 /**
  * Initialises the class
  */
 public function __construct()
 {
     parent::__construct(__('Columns'), Node::CONTAINER);
     $this->icon = Util::getImage('pause.png', __('Columns'));
     $this->links = array('text' => 'tbl_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s' . '&amp;token=' . $_SESSION[' PMA_token '], 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s' . '&amp;token=' . $_SESSION[' PMA_token ']);
     $this->real_name = 'columns';
     $new_label = _pgettext('Create new column', 'New');
     $new = NodeFactory::getInstance('Node', $new_label);
     $new->isNew = true;
     $new->icon = Util::getImage('b_column_add.png', $new_label);
     $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=' . $_SESSION[' PMA_token '], 'icon' => 'tbl_addfield.php?server=' . $GLOBALS['server'] . '&amp;db=%3$s&amp;table=%2$s' . '&amp;field_where=last&after_field=' . '&amp;token=' . $_SESSION[' PMA_token ']);
     $new->classes = 'new_column italics';
     $this->addChild($new);
 }
开发者ID:netroby,项目名称:phpmyadmin,代码行数:17,代码来源:NodeColumnContainer.php

示例13: __construct

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

示例14: __construct

 /**
  * Initialises the class
  */
 public function __construct()
 {
     parent::__construct(__('Indexes'), Node::CONTAINER);
     $this->icon = PMA\libraries\Util::getImage('b_index.png', __('Indexes'));
     $this->links = array('text' => 'tbl_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s' . '&amp;token=' . $_SESSION[' PMA_token '], 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;table=%1$s' . '&amp;token=' . $_SESSION[' PMA_token ']);
     $this->real_name = 'indexes';
     $new_label = _pgettext('Create new index', 'New');
     $new = NodeFactory::getInstance('Node', $new_label);
     $new->isNew = true;
     $new->icon = PMA\libraries\Util::getImage('b_index_add.png', $new_label);
     $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=' . $_SESSION[' PMA_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=' . $_SESSION[' PMA_token ']);
     $new->classes = 'new_index italics';
     $this->addChild($new);
 }
开发者ID:itgsod-philip-skalander,项目名称:phpmyadmin,代码行数:17,代码来源:NodeIndexContainer.php

示例15: __construct

 /**
  * Initialises the class
  */
 public function __construct()
 {
     parent::__construct(__('Functions'), Node::CONTAINER);
     $this->icon = PMA\libraries\Util::getImage('b_routines.png', __('Functions'));
     $this->links = array('text' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $_SESSION[' PMA_token '] . '&amp;type=FUNCTION', 'icon' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%1$s&amp;token=' . $_SESSION[' PMA_token '] . '&amp;type=FUNCTION');
     $this->real_name = 'functions';
     $new_label = _pgettext('Create new function', 'New');
     $new = NodeFactory::getInstance('Node', $new_label);
     $new->isNew = true;
     $new->icon = PMA\libraries\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&amp;item_type=FUNCTION', 'icon' => 'db_routines.php?server=' . $GLOBALS['server'] . '&amp;db=%2$s&amp;token=' . $_SESSION[' PMA_token '] . '&add_item=1&amp;item_type=FUNCTION');
     $new->classes = 'new_function italics';
     $this->addChild($new);
 }
开发者ID:itgsod-philip-skalander,项目名称:phpmyadmin,代码行数:17,代码来源:NodeFunctionContainer.php


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