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


PHP Zend_View_Interface::imageTag方法代码示例

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


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

示例1: lockIcon

 /**
  * Output a lock icon which also serves as a link to unlock a page (if the user has permission
  * to do this)
  *
  * @param  Array       menu item array for this lock
  * @param  DbUserModel user that is currently logged in
  * @return string
  */
 public function lockIcon($menu, DbUserModel $user)
 {
     if ($menu['locked']) {
         $user = new DbUserModel(array('dbUserID' => $menu['locked'], 'depth' => 'dbUser'));
         $title = "Currently locked by '{$this->h($user->dbUserFullName)}'.";
         if ($user->hasAccess('edit', $menu['page']) || $user->hasAccess('approve', $menu['page'])) {
             $title .= ' Click to unlock.';
             $html = $this->view->linkTo('#', $this->view->imageTag('icons/ffffff/lock_small.png', array('id' => $this->view->url(array('action' => 'unlock', 'id' => $menu['page']->pageID)), 'class' => 'inline lock tooltip', 'tooltip' => $title)));
         } else {
             $html = $this->view->imageTag('icons/ffffff/lock_small.png', array('class' => 'inline', 'title' => $title));
         }
     } else {
         $html = '';
     }
     return $html;
 }
开发者ID:humansky,项目名称:qframe,代码行数:24,代码来源:ApplicationHelpers.php

示例2: optionButton

 /**
  * Outputs an option button for the "more options" panel
  *
  * @param  string name of the javascript event handler
  * @param  string image filename
  * @param  string description (when hovered over)
  * @param  string (optional) class to apply to the button
  * @return string
  */
 public function optionButton($handler, $image, $description, $class = 'inline')
 {
     $image = 'icons/ffffff/' . $image;
     return $this->view->linkTo("#{$handler}", $this->view->imageTag($image, array('class' => $class, 'title' => $description)));
 }
开发者ID:humansky,项目名称:qframe,代码行数:14,代码来源:CompareHelpers.php


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