* @author Alan Knowles <alan@akbkhome.com>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
* @author Alan Knowles <alan@akbkhome.com>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
echo "*****************************************************************\n".
"** WARNING COLUMN NAME UNUSABLE **\n".
"** Found column '{$t->name}', of type '{$t->type}' **\n".
echo "*****************************************************************\n".
"** WARNING COLUMN NAME UNUSABLE **\n".
"** Found column '{$t->name}', of type '{$t->type}' **\n".
"** name, and the whole idea of mapping would result in a mess **\n".
"** This column has been ignored... **\n".
"*****************************************************************\n";
"** name, and the whole idea of mapping would result in a mess **\n".
"** This column has been ignored... **\n".
"*****************************************************************\n";
//echo "Generating Class files: \n";
$options = &PEAR::getStaticProperty('DB_DataObject','options');
//echo "Generating Class files: \n";
$options = &PEAR::getStaticProperty('DB_DataObject','options');
-
- if ($extends = @$options['extends']) {
- $this->_extends = $extends;
- $this->_extendsFile = $options['extends_location'];
- }
+ $this->_extends = empty($options['extends']) ? $this->_extends : $options['extends'];
+ $this->_extendsFile = empty($options['extends_location']) ? $this->_extendsFile : $options['extends_location'];
+
echo "*****************************************************************\n".
"** WARNING COLUMN NAME UNUSABLE **\n".
"** Found column '{$t->name}', of type '{$t->type}' **\n".
echo "*****************************************************************\n".
"** WARNING COLUMN NAME UNUSABLE **\n".
"** Found column '{$t->name}', of type '{$t->type}' **\n".
"** name, and the whole idea of mapping would result in a mess **\n".
"** This column has been ignored... **\n".
"*****************************************************************\n";
"** name, and the whole idea of mapping would result in a mess **\n".
"** This column has been ignored... **\n".
"*****************************************************************\n";
$options = &PEAR::getStaticProperty('DB_DataObject','options');
$class_prefix = empty($options['class_prefix']) ? '' : $options['class_prefix'];
$options = &PEAR::getStaticProperty('DB_DataObject','options');
$class_prefix = empty($options['class_prefix']) ? '' : $options['class_prefix'];
- if ($extends = @$options['extends']) {
- $this->_extends = $extends;
- $this->_extendsFile = $options['extends_location'];
- }
+ $this->_extends = empty($options['extends']) ? $this->_extends : $options['extends'];
+ $this->_extendsFile = empty($options['extends_location']) ? $this->_extendsFile : $options['extends_location'];
+
$classname = $this->classname = $this->getClassNameFromTableName($this->table);
$out = $this->_generateClassTable();
$classname = $this->classname = $this->getClassNameFromTableName($this->table);
$out = $this->_generateClassTable();