Perforce Chronicle 2012.2/486814
API Documentation

P4_ModelAbstract Class Reference

Provides a base implementation for models that utilize fields. More...

Inheritance diagram for P4_ModelAbstract:
P4_ConnectedAbstract P4_ModelInterface P4_ConnectedInterface P4_File P4_SpecAbstract P4_Protections P4_Spec_PluralAbstract P4_Triggers P4_Typemap P4_Branch P4_Change P4_Client P4_Depot P4_Group P4_Job P4_Label P4_Stream P4_User

List of all members.

Public Member Functions

 toArray ()
 Get the model data as an array.

Detailed Description

Provides a base implementation for models that utilize fields.

Copyright:
2011-2012 Perforce Software. All rights reserved
License:
Please see LICENSE.txt in top-level folder of this distribution.
Version:
2012.2/486814

Member Function Documentation

P4_ModelAbstract::toArray ( )

Get the model data as an array.

Returns:
array the model data as an array.

Implements P4_ModelInterface.

    {
        $values = array();
        foreach ($this->getFields() as $field) {
            $values[$field] = $this->getValue($field);
        }

        return $values;
    }

The documentation for this class was generated from the following file: