fatal error in POG

9 views
Skip to first unread message

fullmoon

unread,
Dec 11, 2009, 2:19:15 AM12/11/09
to Web Form Factory, moona...@gmail.com
Hello!
I keep getting this error despite doing the entire procedure thrice as
instructed.

Fatal error: Method sgsone::__get() must take exactly 1 argument in /
home/ashish/public_html/NetBusinessSkins/forms/sgsone/objects/
class.sgsone.php on line 96

When i check the line 95 in class.sgsone.php, It just shows a closing
bracket }
I am reproducing the code frpm 83 to 107 lines for your perview:
-----------------------------------------------------------------------------------
/**
* Getter for some private attributes
* @return mixed $attribute
*/
function __get($attribute, &$value)
{
@eval('$result = $this->_'.$attribute.';');
if ($result == null)
{
$value = false;
}
$value = $result;
return true;
}
function sgsone($select='', $textarea='', $textfield='',
$textfield2='', $textarea2='', $textarea3='', $textarea4='',
$textarea5='')
{
$this->select = $select;
$this->textarea = $textarea;
$this->textfield = $textfield;
$this->textfield2 = $textfield2;
$this->textarea2 = $textarea2;
$this->textarea3 = $textarea3;
$this->textarea4 = $textarea4;
$this->textarea5 = $textarea5;
}

Reply all
Reply to author
Forward
0 new messages