I am having difficulty understanding the proper syntax for the second default value in the following method declaration statement. Any suggestions would be greatly appreciated. Thanks!
protected function load($columName = self::_tableIdName, $columnValue = self::_data->{self::_tableIdName})
{...}
Notes: $_tableIdName is a protected variable within the class;
$_data is a protected stdClass object within the class.
I am trying to make the default for $columnValue equal to the corresponding value from the internal $_data object.
$columnNameas the first parameter to the load function? You put$columName.