本文整理汇总了PHP中Picture::setTitle方法的典型用法代码示例。如果您正苦于以下问题:PHP Picture::setTitle方法的具体用法?PHP Picture::setTitle怎么用?PHP Picture::setTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Picture
的用法示例。
在下文中一共展示了Picture::setTitle方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: define
function __construct($content, $title)
{
parent::__construct();
define(GOOGLE_CODE_TRACKER_NOT_ACTIF, true);
$this->render = new Table();
$this->render->setWidth("100%");
// Header
if (defined('SITE_META_OPENGRAPH_IMAGE') && SITE_META_OPENGRAPH_IMAGE != "") {
$logo = new Picture(SITE_META_OPENGRAPH_IMAGE);
} else {
$logo = new Picture("img/logo_128x400_" . $_SESSION['lang'] . ".png", 128, 400);
}
$logo->setTitle(__(SITE_NAME));
$logo_link = new Link($this->getPage()->getBaseLanguageURL(), Link::TARGET_NONE, $logo);
$img_obj = new Object($logo_link);
$img_obj->add("<br/><br/>");
$this->render->addRow($img_obj);
$this->render->addRow();
// Error message
$small_img = new Picture("wsp/img/warning_16.png", 16, 16, 0, "absmiddle");
$title_header = new Object($small_img, $title);
$error_box = new Box($title_header, true, Box::STYLE_MAIN, Box::STYLE_MAIN, '', 'error_box', 700);
$error_box->setContent($content);
$this->render->addRow($error_box);
}
示例2: Picture
function __construct()
{
// Header
$logo = new Picture("img/logo_128x400_" . $_SESSION['lang'] . ".png", 128, 400);
$logo->setTitle(__(SITE_NAME));
$logo_link = new Link(BASE_URL . $_SESSION['lang'] . "/", Link::TARGET_NONE, $logo);
$img_obj = new Object($logo_link);
$img_obj->add("<br/><br/>");
$this->render = $img_obj;
}
示例3: testPut
public function testPut()
{
$picture = new Picture();
$picture->setId(1);
$picture->setTitle('announcement_1_1');
$picture->setPath('/announcement/original/');
$picture->setAlternative('Un texte alternatif modifié');
$picture->setIdAnnouncement(10);
$picture->setExtension('gif');
$pictureMapper = new PictureMapper();
$pictureMapper->setId(1);
$pictureMapper->updatePicture($picture);
$this->assertEquals($picture, $pictureMapper->selectPicture());
}