Пример #1
0
 public function __construct($id = '', $value = '', $properties = null)
 {
     //		unset($this->value);
     //		$this->addProperty('value', '');
     parent::__construct($id, $properties);
     $this->value = $value;
 }
Пример #2
0
 public function __construct($id = '', $text = 'click here', $url = '', $type = self::TYPE_DEFAULT, $size = self::SIZE_DEFAULT, $properties = null)
 {
     parent::__construct($id, $properties);
     $this->text = $text;
     $this->type = $type;
     $this->size = $size;
     $this->url = $url;
     //		$this->class = $class;
 }
Пример #3
0
 public function __construct($id = '', $value = '', $type = self::TYPE_DEFAULT, $properties = null)
 {
     //        unset($this->type);
     //        unset($this->value);
     //        $this->addProperty('type', self::TYPE_DEFAULT);
     //        $this->addProperty('value', '');
     parent::__construct($id, $properties);
     $this->type = $type;
     $this->value = $value;
 }
Пример #4
0
 public function __construct($id = '', $text = 'Submit', $actionType = self::ACTION_TYPE_DEFAULT, $type = self::TYPE_DEFAULT, $size = self::SIZE_DEFAULT, $properties = array())
 {
     $this->actionType = $actionType;
     $this->text = $text;
     $this->type = $type;
     $this->size = $size;
     if ($this->type == self::TYPE_DEFAULT) {
         $this->type = $this->_actionTypeDefault[$this->actionType];
     }
     parent::__construct($id, $properties);
 }
 public function __construct($id = '', $name = '', $properties = null)
 {
     //		$this->_traceEnabled = $traceEnabled;
     //		unset($this->defaultButtonID);
     //		unset($this->name);
     //        unset($this->label);
     //		$this->addProperty('defaultButtonID', '');
     //		$this->addProperty('name', '');
     //        $this->addProperty('label', '');
     $this->name = $name;
     parent::__construct($id, $properties);
 }
Пример #6
0
 public function __construct($id = 'message', $sessionName = 'dc_message', $class = 'message', $separator = "<br />\n", $properties = null)
 {
     //		$this->_traceEnabled = $traceEnabled;
     //		unset($this->sessionName);
     //		unset($this->separator);
     //		unset($this->icon);
     //		unset($this->singleBox);
     //		$this->addProperty('sessionName', 'dc_message');
     //		$this->addProperty('separator', "<br />\n");
     //		$this->addProperty('icon', '');
     //		$this->addProperty('singleBox', true);
     parent::__construct($id, $properties);
     $this->sessionName = $sessionName;
     $this->class = $class;
 }
Пример #7
0
 public function __construct($id = '', $image = '', $properties = array(), $traceEnabled = false)
 {
     //		$this->_traceEnabled = $traceEnabled;
     //		unset($this->alt);
     //        unset($this->title);
     //		unset($this->image);
     //		unset($this->height);
     //		unset($this->width);
     //		$this->addProperty('alt', '');
     //        $this->addProperty('title', '');
     //		$this->addProperty('image', '');
     //		$this->addProperty('height', '');
     //		$this->addProperty('width', '');
     $this->image = $image;
     parent::__construct($id, $properties, $traceEnabled);
 }
Пример #8
0
 public function __construct($id = 'pageNav', $class = 'pageNav', $qsPrefix = 'pn_', $properties = null)
 {
     //        $this->_traceEnabled = $traceEnabled;
     $this->enableLog();
     parent::__construct($id, $properties);
     $this->class = $class;
     $this->qsPrefix = $qsPrefix;
     $this->imagePath = $this->getBasePath() . '/images/';
     #---- Auto Detect Current Page
     $this->currentPage = isset($_GET[$this->qsPrefix . 'pg']) ? $_GET[$this->qsPrefix . 'pg'] : 1;
     if ((int) $this->currentPage < 2) {
         $this->itemOffset = 0;
         $this->currentPage = 1;
     } else {
         $this->itemOffset = ((int) $this->currentPage - 1) * (int) $this->itemsPerPage;
     }
 }
Пример #9
0
 public function __construct($anvilDataConnection = null, $sql = '', $id = 'anvilGrid', $mainClass = 'anvilGrid', $properties = null, $traceEnabled = false)
 {
     global $anvilGridCounter;
     $this->enableLog();
     //        $this->addProperty('rowOffset', 0);
     //        $this->addProperty('maxRows', 25);
     //        $this->addProperty('baseURL', '');
     //        $this->addProperty('baseQueryString', '');
     //        $this->addProperty('rowHoverClass', 'rowHover');
     $this->columns = new anvilGridColumns(true);
     $this->db = $anvilDataConnection;
     $this->baseSQL = $sql;
     $this->htmlID = $id;
     //        $this->statePrefix = $this->htmlID . '_';
     $this->mainClass = $mainClass;
     $this->baseURL = $this->getPagePath();
     $this->imagePath = $this->getBasePath() . '/images/';
     $anvilGridCounter++;
     $this->statePrefix .= $anvilGridCounter . '_';
     if (is_object($anvilDataConnection)) {
         $this->_dataEngine = constant(get_class($anvilDataConnection) . '::ENGINE');
     }
     parent::__construct($id, $properties, $traceEnabled);
     $this->_addTraceInfo(__FILE__, __METHOD__, __LINE__, '... done (' . date('h:i:s A') . ')');
 }
Пример #10
0
 public function __construct($id = 0, $properties = null)
 {
     parent::__construct($id, $properties);
     //                $this->enableLog();
     $this->controls = new anvilCollection();
 }