public function GetValues ($getNullValues = FALSE, $includeInheritProperties = TRUE, $publicOnly = TRUE) {
		$data = [];
		$modelClassName = get_class($this);
		$classReflector = new \ReflectionClass($modelClassName);
		$properties = $publicOnly ? $classReflector->getProperties(\ReflectionProperty::IS_PUBLIC) : $classReflector->getProperties();
		foreach ($properties as $property) {
			if (!$includeInheritProperties && $property->class != $modelClassName) continue;
			$propertyName = $property->name;
			if (isset(static::$protectedProperties[$propertyName])) continue;
			if (!$getNullValues && $this->$propertyName === NULL) continue;
			$data[$propertyName] = $this->$propertyName;
		}
		return $data;
	}
public function GetValues ($getNullValues = FALSE, $includeInheritProperties = TRUE, $publicOnly = TRUE) {
		$data = [];
		$modelClassName = get_class($this);
		$classReflector = new \ReflectionClass($modelClassName);
		$properties = $publicOnly ? $classReflector->getProperties(\ReflectionProperty::IS_PUBLIC) : $classReflector->getProperties();
		foreach ($properties as $property) {
			if (!$includeInheritProperties && $property->class != $modelClassName) continue;
			$propertyName = $property->name;
			if (isset(static::$protectedProperties[$propertyName])) continue;
			if (!$getNullValues && $this->$propertyName === NULL) continue;
			$data[$propertyName] = $this->$propertyName;
		}
		return $data;
	}
public function GetValues ( $ getNullValues = FALSE , $ includeInheritProperties = TRUE , $ publicOnly = TRUE ) { $ data = [ ] ; $ modelClassName = get_class ( $ this ) ; $ classReflector = new \ ReflectionClass ( $ modelClassName ) ; $ properties = $ publicOnly ? $ classReflector -> getProperties ( \ ReflectionProperty :: IS_PUBLIC ) : $ classReflector -> getProperties ( ) ; foreach ( $ properties as $ property ) { if ( ! $ includeInheritProperties && $ property -> class != $ modelClassName ) continue ; $ propertyName = $ property -> name ; if ( isset ( static :: $ protectedProperties [ $ propertyName ] ) ) continue ; if ( ! $ getNullValues && $ this -> $ propertyName === NULL ) continue ; $ data [ $ propertyName ] = $ this -> $ propertyName ; } return $ data ; }
Collect all model class public and inherit field values into array.
@param boolean $getNullValues			If `TRUE`, include also values with `NULL`s, by default - `FALSE`.
@param boolean $includeInheritProperties If `TRUE`, include only fields from current model class and from parent classes.
@param boolean $publicOnly			   If `TRUE`, include only public model fields.
@return array
Collect all model class public and inherit field values into array .