protected function prepareMessage() { $dictionary = $this->dictionary(); $text = AMDisplayObject::initWithURLAndDictionary($this->basePath() . '/' . $this->text, $dictionary); $html = AMDisplayObject::initWithURLAndDictionary($this->basePath() . '/' . $this->html, $dictionary); return array('text' => $text->__toString(), 'html' => $html->__toString()); }
protected function page_load($argc = 0, $argv = null) { $dir = dirname(__FILE__); $options = array(); $navigation = null; $source = Renegade::hasAuthorizedUser() ? $dir . '/NavigationAuthorizedTrue.html' : $dir . '/NavigationAuthorizedFalse.html'; $navigation = AMDisplayObject::initWithURLAndDictionary($source, $options); echo $navigation; }
* PURPOSE. See the License for the specific language governing permissions and * limitations under the License. * * Author: Adam Venturella - aventurella@gmail.com * * @package samples * @subpackage display * @author Adam Venturella <*****@*****.**> * @copyright Copyright (C) 2010 Adam Venturella * @license http://www.apache.org/licenses/LICENSE-2.0 Apache 2.0 * **/ require '../../axismundi/display/AMDisplayObject.php'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>DisplayObject Simple</title> <meta name="author" content="Adam Venturella"> </head> <body> <?php $dictionary = array('message' => 'Welcome', 'cta_home' => 'Home', 'cta_about' => 'About', 'cta_contact' => 'Contact'); echo AMDisplayObject::initWithURLAndDictionary('views/template.html', $dictionary); ?> </body> </html>