newhck / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

Base::configure method isn't working #167

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. PHP 5.2.6
2. Probably scope issue
3.

What is the expected output? What do you see instead?

The attributes aren't set.

What version of the product are you using? On what operating system?

For PHP 5

Please provide any additional information below.

I fixed this by creating the appropriate setter methods. 

Original issue reported on code.google.com by info%dav...@gtempaccount.com on 3 May 2012 at 3:23

GoogleCodeExporter commented 8 years ago
Add these functions to the Element class

    public function setDescription($description) {

        $this->description = $description;
    }

    public function setLabel($label) {

        $this->label = $label;
    }

    public function setType($type) {

        $this->attributes['type'] = $type;
    }

    public function setName($name) {
        $this->attributes['name'] = $name;
    }

Original comment by info%dav...@gtempaccount.com on 3 May 2012 at 3:57

GoogleCodeExporter commented 8 years ago
Add these functions to the Form class:

    public function setDescription($description) {

        $this->description = $description;
    }

    public function setLabel($label) {

        $this->label = $label;
    }

    public function setAction($action) {

        $this->attributes['action'] = $action;
    }

    public function setMethod($method) {

        $this->attributes['method'] = $method;
    }

    public function setId($id) {

        $this->attributes['id'] = $id;
    }

    public function setWidth($width) {

        $this->width = $width;
    }

Original comment by info%dav...@gtempaccount.com on 3 May 2012 at 3:57