protected function getCompiledAttributes($prependClass = "", $skipValue = false) {
        $attrs = "";
        if($this->id) $attrs .= " id='$this->id'";
        $attrs .= " class='$prependClass $this->class'";
        if($this->name) $attrs .= " name='$this->name'";
        if($this->placeholder) $attrs .= " placeholder='$this->placeholder'";
        if($this->value && !$skipValue) $attrs .= " value='$this->value'";
        if($this->disabled === true) $attrs .= " disabled";
        if($this->readonly === true) $attrs .= " readonly";
        if($this->required === true) $attrs .= " required";
        
        // Trim and return the compiled attributes
        return rtrim(ltrim($attrs));
    }
protected function getCompiledAttributes($prependClass = "", $skipValue = false) {
        $attrs = "";
        if($this->id) $attrs .= " id='$this->id'";
        $attrs .= " class='$prependClass $this->class'";
        if($this->name) $attrs .= " name='$this->name'";
        if($this->placeholder) $attrs .= " placeholder='$this->placeholder'";
        if($this->value && !$skipValue) $attrs .= " value='$this->value'";
        if($this->disabled === true) $attrs .= " disabled";
        if($this->readonly === true) $attrs .= " readonly";
        if($this->required === true) $attrs .= " required";
        
        // Trim and return the compiled attributes
        return rtrim(ltrim($attrs));
    }
protected function getCompiledAttributes ( $ prependClass = "" , $ skipValue = false ) { $ attrs = "" ; if ( $ this -> id ) $ attrs .= " id='$this->id'" ; $ attrs .= " class='$prependClass $this->class'" ; if ( $ this -> name ) $ attrs .= " name='$this->name'" ; if ( $ this -> placeholder ) $ attrs .= " placeholder='$this->placeholder'" ; if ( $ this -> value && ! $ skipValue ) $ attrs .= " value='$this->value'" ; if ( $ this -> disabled === true ) $ attrs .= " disabled" ; if ( $ this -> readonly === true ) $ attrs .= " readonly" ; if ( $ this -> required === true ) $ attrs .= " required" ; // Trim and return the compiled attributes return rtrim ( ltrim ( $ attrs ) ) ; }
Compile the HTML attributes for using in the controls tag
@param string $prependClass
@param boolean $skipValue
@return string Compiled attributes
Compile the HTML attributes for using in the controls tag