本文整理汇总了PHP中Album::setDescription方法的典型用法代码示例。如果您正苦于以下问题:PHP Album::setDescription方法的具体用法?PHP Album::setDescription怎么用?PHP Album::setDescription使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Album
的用法示例。
在下文中一共展示了Album::setDescription方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addAlbum
public function addAlbum($request, $title, $number = null, $mini = null)
{
$daoAlbum = $this->dao->getDAO("Album");
$albumTitle = $title == null ? 'Album glowny' : $title;
if ($number == 0) {
$number = $daoAlbum->countByUserId($_SESSION['oUser']->getId());
++$number;
}
if ($mini != null) {
$icon = $mini;
}
$album = new Album();
$album->setAccess(NewPhotoEnum::ALBUM_PUBLIC);
$album->setAdded($album->getAdded());
$album->setDescription($request->getDescription());
$album->setNumber($number);
$album->setTitle($albumTitle);
$album->setIcon($icon);
$album->setUserId($_SESSION['oUser']->getId());
$albumAdded = $daoAlbum->save($album);
return $albumAdded;
}
示例2: setAlbumDescription
private function setAlbumDescription()
{
Module::dependencies(isset($_POST['albumID'], $_POST['description']));
$album = new Album($this->database, $this->plugins, $this->settings, $_POST['albumID']);
echo $album->setDescription($_POST['description']);
}
示例3: convertAlbum
/**
* Converts the album fetched from the database to the Album object.
*/
private function convertAlbum($row)
{
$album = new Album($row['id'], $row['owner_id']);
$album->setTitle($row['title']);
$album->setDescription($row['description']);
$album->setMediaMimeType($row['media_mime_type']);
$album->setThumbnailUrl($row['thumbnail_url']);
$album->setMediaType($row['media_type']);
$album->setMediaItemCount($row['media_item_count']);
if (isset($row['address_id'])) {
$album->setLocation($this->getAddress($row['address_id']));
}
$album->setMediaItemCount($this->getCount("select count(*) from media_items where album_id = " . $row['id']));
return $album;
}