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


PHP obj::getTitle方法代码示例

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


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

示例1: executeHook

 /**
  * Parser Hook
  * 
  * The following method is assigned to a hook, which will be run whenever
  * the user adds a <bugs /> tag in the main MediaWiki code.
  *
  * @param string $text
  * @param array $args
  * @param obj $parser
  * @return str
  */
 public static function executeHook($text, $args = array(), $parser)
 {
     $parser->disableCache();
     // Set the page namespace
     $namespace['dbKey'] = $parser->getTitle()->getPrefixedDBkey();
     $namespace['text'] = $parser->getTitle()->getPrefixedText();
     $isParserHook = true;
     // Process request
     $instance = self::_getInstance();
     $output = $instance->_processActionRequest($namespace, $isParserHook, $args);
     return $output;
 }
开发者ID:eclecticdave,项目名称:issuetracker,代码行数:23,代码来源:IssueTracker.body.php

示例2: obtenerNombreHojaExcel

/**
 * Obtiene el nombre de la hoja leida
 * <br>Para poder utilizar esta funcion, se debe haber realizado la lectura 
 * de la hoja mediante la funcion <i>obtenerHojaExcel()</i>
 * @param obj $hoja <p>Objeto WorkingSheet instanciado con la hoja leida</p>
 * @return string <p>El nombre de la hoja</p>
 */
function obtenerNombreHojaExcel($hoja)
{
    try {
        $retorno = $hoja->getTitle();
    } catch (Exception $ex) {
        //echo $ex->getMessage()."<br>";
        $retorno = "";
    }
    return $retorno;
}
开发者ID:stefanFramework,项目名称:alexis-texas,代码行数:17,代码来源:gestionExcel.php

示例3: getSlide

 /**
  * Helper function to print the individual slides
  *
  * @param obj $albumobj Album object
  * @param obj $imgobj Current slide obj
  * @param int $width Slide image width
  * @param int $height Slide image height
  * @param int $cropw Slide image crop width
  * @param int $croph Slide image crop height
  * @param bool $linkslides True or false if the slides should be linked to their image page.
  *                          Note: In carousel mode this means full image links as here slides are always linked to the image page.
  * @param bool $crop True or false to crop the image
  * @param bool $carousel if the slideshow is a carousel so we can enable full image linking (only images allowed!)
  */
 static function getSlide($albumobj, $imgobj, $width, $height, $cropw, $croph, $linkslides, $crop = false, $carousel = false)
 {
     global $_zp_current_image;
     if ($crop) {
         $imageurl = $imgobj->getCustomImage(NULL, $width, $height, $cropw, $croph, NULL, NULL, true, NULL);
     } else {
         $maxwidth = $width;
         $maxheight = $height;
         getMaxSpaceContainer($maxwidth, $maxheight, $imgobj);
         $imageurl = $imgobj->getCustomImage(NULL, $maxwidth, $maxheight, NULL, NULL, NULL, NULL, NULL, NULL);
     }
     $slidecontent = '<div class="slide">' . "\n";
     // no space in carousels for titles!
     if (!$carousel) {
         $slidecontent .= '<h4>' . html_encode($albumobj->getTitle()) . ': ' . html_Encode($imgobj->getTitle()) . '</h4>' . "\n";
     }
     if ($carousel) {
         // on the carousel this means fullimage as they are always linked anyway
         if ($linkslides) {
             $url = pathurlencode($imgobj->getFullImageURL());
         } else {
             $url = pathurlencode($imgobj->getLink());
         }
         $slidecontent .= '<a href="' . $url . '">' . "\n";
     } else {
         if (!$carousel && $linkslides) {
             $slidecontent .= '<a href="' . pathurlencode($imgobj->getLink()) . '">' . "\n";
         }
     }
     $active = '';
     if ($carousel && !is_null($_zp_current_image)) {
         if ($_zp_current_image->filename == $imgobj->filename) {
             $active = ' class="activeslide"';
         } else {
             $active = '';
         }
     }
     $slidecontent .= '<img src="' . pathurlencode($imageurl) . '" alt=""' . $active . '>' . "\n";
     if ($linkslides || $carousel) {
         $slidecontent .= '</a>' . "\n";
     }
     // no space in carousels for this!
     if (getOption("cycle-slideshow_showdesc") && !$carousel) {
         $slidecontent .= '<div class="slide_desc">' . html_encodeTagged($imgobj->getDesc()) . '</div>' . "\n";
     }
     $slidecontent .= '</div>' . "\n";
     return $slidecontent;
 }
开发者ID:rb26,项目名称:zenphoto,代码行数:62,代码来源:slideshow2.php


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