00001 <?php
00002
00003
00004
00005 class aliroBasicHTML extends aliroFriendlyBase {
00006 protected $controller = null;
00007 protected $translations = array();
00008 protected $pageNav = null;
00009 protected $option = '';
00010 protected $optionline = '';
00011 protected $optionurl = '';
00012 protected $formstamp;
00013
00014 public function __construct ($controller) {
00015 $this->controller = $controller;
00016 $this->pageNav = $controller->pageNav;
00017 $this->option = $this->getOption();
00018 $this->optionline = "<input type='hidden' name='option' value='$this->option' />";
00019 $this->optionurl = 'index.php?option='.$this->option;
00020 $this->formstamp = $this->makeFormStamp();
00021 }
00022
00023 protected function T_ ($string) {
00024 $key = array_search($string, $this->translations);
00025 return $key ? $this->translations[$key] : $string;
00026 }
00027
00028 protected function show ($string) {
00029 return $string;
00030 }
00031
00032 protected function checkedIfTrue ($bool) {
00033 return $bool ? 'checked="checked"' : '';
00034 }
00035
00036 protected function html () {
00037 $args = func_get_args();
00038 $method = array_shift($args);
00039 $html = call_user_func(array('aliroHTML', 'getInstance'));
00040 return call_user_func_array(array($html, $method), $args);
00041 }
00042
00043 }