<?php

abstract class Object extends Framework
{
    /*
     * Get URL to this object
     */
    function getURL()
    {
        return $this->ar() . "/" . $this->guid;
    }

    /*
     * Get object's head image
     */
    function getHeadImage()
    {
        return $this->ar() . "/file.php?d=img/heads&f=" . $this->guid;
    }

    /*
     * Remove this object's head image
     */
    function rmHeadImage()
    {
        if (!is_file("assets/img/heads/" . $this->guid))
            return true;

        return unlink("assets/img/heads/" . $this->guid);
    }
}

?>