Swat/SwatDetailsView.php
public function addChild(SwatObject $child)
    {
        if ($child instanceof SwatDetailsViewField) {
            $this->appendField($child);
        } else {
            $class_name = get_class($child);

            throw new SwatInvalidClassException(
                "Unable to add '{$class_name}' object to SwatDetailsView. " .
                    'Only SwatDetailsViewField objects may be nested within ' .
                    'SwatDetailsView objects.',
                0,
                $child
            );
        }
    }
public function addChild(SwatObject $child)
    {
        if ($child instanceof SwatDetailsViewField) {
            $this->appendField($child);
        } else {
            $class_name = get_class($child);

            throw new SwatInvalidClassException(
                "Unable to add '{$class_name}' object to SwatDetailsView. " .
                    'Only SwatDetailsViewField objects may be nested within ' .
                    'SwatDetailsView objects.',
                0,
                $child
            );
        }
    }
public function addChild ( SwatObject $ child ) { if ( $ child instanceof SwatDetailsViewField ) { $ this -> appendField ( $ child ) ; } else { $ class_name = get_class ( $ child ) ; throw new SwatInvalidClassException ( "Unable to add '{$class_name}' object to SwatDetailsView. " . 'Only SwatDetailsViewField objects may be nested within ' . 'SwatDetailsView objects.' , 0 , $ child ) ; } }
Adds a child object to this object

@param SwatDetailsViewField $child the child object to add to this
object.

@throws SwatInvalidClassException

@see SwatUIParent::addChild()
Adds a child object to this object