public function as_li($show_link = false) { $this->show_link = $show_link; $class = 'file'; $class .= $this->fileid > 0 ? ' uploaded' : ''; $s = parent::as_li($class); $this->show_link = false; return $s; }
public function __construct($args = array()) { $args = PSU::params($args, array('type' => 'text')); $this->adodb_type = "C"; $this->maxlength = new HTMLAttribute(); $this->size = new HTMLAttribute(20); $this->value = new HTMLAttribute(); $this->placeholder = new HTMLAttribute(); $this->autofocus = new HTMLProperty(); parent::__construct($args); }