git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1246 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
31 lines
666 B
PHP
31 lines
666 B
PHP
<?php
|
|
/** DomFramework Blog
|
|
@package domframework-blog
|
|
@author Dominique Fournier <dominique@fournier38.fr> */
|
|
|
|
/** Display the articles of the blog */
|
|
class view_blog
|
|
{
|
|
/** Return the datas
|
|
@param array $data The list of titles */
|
|
function get ($data)
|
|
{
|
|
return $data;
|
|
}
|
|
|
|
/** Display the list of titles
|
|
@param array $data The list of titles */
|
|
function listing ($data)
|
|
{
|
|
$content = "<ul>\n";
|
|
foreach ($data as $val)
|
|
{
|
|
$content .= " <li>";
|
|
$content .= "<a href='".urlencode ($val)."'>".htmlentities ($val)."</a>";
|
|
$content .= "</li>\n";
|
|
}
|
|
$content .= "</ul>\n";
|
|
return $content;
|
|
}
|
|
}
|