* @copyright 2005-2006 Benoit Grégoire, Technologies Coeus inc. * @version Subversion $Id: TrivialLangstring.php 1031 2006-05-10 18:56:02Z benoitg $ * @link http://www.wifidog.org/ */ /** * Load required classes */ /** * Represents a simple picture (no title, description, etc.) * * @package WiFiDogAuthServer * @subpackage ContentClasses * @author Benoit Grégoire * @copyright 2005-2006 Benoit Grégoire, Technologies Coeus inc. */ class SimplePicture extends Picture { /** * Constructor * * @param string $content_id Content id * * @return void * * @access protected */ protected function __construct($content_id) { parent::__construct($content_id); $this->setIsTrivialContent(true); /* * A SimplePicture is NEVER persistent */ parent::setIsPersistent(false); } /** * Reloads the object from the database. * * Should normally be called after a set operation. * * This function is private because calling it from a subclass will call the * constructor from the wrong scope * * @return void * * @access private */ private function refresh() { $this->__construct($this->id); } } /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * c-hanging-comment-ender-p: nil * End: */