A komment.php-ben a kommenteket immáron OO módon szolgálja ki a blog. Ami emögött van:
class Container {
var $elements
var $pointer
var $length
function Container()
function addElement($element)
function length()
function getElement($i)
function getLastElement()
function getFirstElement()
function getNextElement()
function removeElement()
function setPointer($i)
function forAll($function)
}
class Comments extends Container {
var $picOfUser
function Comments()
function getCommentsByPostId($post_id, $order, $from, $to)
function showHTML()
}
class Comment {
var $row
function Comment($row)
function showHTML()
}
A hajnal óta elkövetett változtatásokat jelöltem. Logikusan a showHTML mellé kerülni fog egy-egy showRSS function.