/** * Constructor * * @param string $content_id Content id * * @return void */ protected function __construct($content_id) { parent::__construct($content_id); /* * A TrivialLangstring is NEVER persistent */ parent::setIsPersistent(false); }
/** * Constructor * * @param string $content_id Content id * * @return void */ protected function __construct($content_id) { parent::__construct($content_id); $this->allowed_html_tags = ""; /* * A SimpleString is NEVER persistent */ parent::setIsPersistent(false); }
/** * Constructor. * * @param int $content_id ID of content. * * @return void */ protected function __construct($content_id) { parent::__construct($content_id); $this->allowed_html_tags = "<p><div><pre><address><h1><h2><h3><h4><h5><h6><br><b><strong><i><em><u><span><ol><ul><li><a><img><embed><table><tbody><thead><th><tr><td><hr>"; // Check FCKeditor support if (Dependency::check("FCKeditor")) { // Load FCKeditor class require_once 'lib/FCKeditor/fckeditor.php'; $this->_FCKeditorAvailable = true; } }
/** * Returns the first available string in the user's language, faling that in the * same major language (first part of the locale), failing that the first available * string * * @return UTF-8 string */ public function getString() { $smarty = SmartyWifidog::getObject(); $name = 'string_' . $this->getId(); smarty_resource_string_add_string($name, parent::getString()); //echo $smarty->fetch("string:$name"); return $smarty->fetch("string:{$name}"); }
/** * Retreives the admin interface of this object. Anything that overrides * this method should call the parent method with it's output at the END of * processing. * @param string $subclass_admin_interface HTML content of the interface * element of a children. * @return string The HTML fragment for this interface. */ public function getAdminUI($subclass_admin_interface = null, $title = null) { $html = "<div class='admin_section_hint'>" . _("Hints: Note that the order in which Stylesheets are assigned relative to other content doesn't matter (except relative to other Stylesheets). Stylesheets will be linked to the page in the order they are assigned, but always after the base stylesheet and network theme pack (if applicable). They must be written as patches to those stylesheets.") . "</div>"; $html .= $subclass_admin_interface; return parent::getAdminUI($html, $title); }