common/models/forms/GenericForm.php
public function getFormAttributes( $classPath = null ) {

		if( !isset( $classPath ) ) {

			$classPath	= 'cmsgears\core\common\models\forms\GenericForm';
		}

		$refclass	= new \ReflectionClass( $classPath );
		$attribArr	= array();

		foreach ( $refclass->getProperties() as $property ) {

			$name = $property->name;

			if ( $property->class == $refclass->name ) {

				$attribArr[ $name ] = $this->$name;
			}
		}

		return $attribArr;
	}
public function getFormAttributes( $classPath = null ) {

		if( !isset( $classPath ) ) {

			$classPath	= 'cmsgears\core\common\models\forms\GenericForm';
		}

		$refclass	= new \ReflectionClass( $classPath );
		$attribArr	= array();

		foreach ( $refclass->getProperties() as $property ) {

			$name = $property->name;

			if ( $property->class == $refclass->name ) {

				$attribArr[ $name ] = $this->$name;
			}
		}

		return $attribArr;
	}
public function getFormAttributes ( $ classPath = null ) { if ( ! isset ( $ classPath ) ) { $ classPath = 'cmsgears\core\common\models\forms\GenericForm' ; } $ refclass = new \ ReflectionClass ( $ classPath ) ; $ attribArr = array ( ) ; foreach ( $ refclass -> getProperties ( ) as $ property ) { $ name = $ property -> name ; if ( $ property -> class == $ refclass -> name ) { $ attribArr [ $ name ] = $ this -> $ name ; } } return $ attribArr ; }
Collect and return the list of class members and their values using reflection.

@return array List of class members and their value.
Collect and return the list of class members and their values using reflection .