*/
protected $uid;
+ /**
+ * @var int The uid of the localization parent
+ */
+ protected $_localizationParentUid;
+
/**
* TRUE if the object is a clone
* @var boolean
*/
- private $isClone = FALSE;
+ private $_isClone = FALSE;
/**
* The generic constructor. If you want to implement your own __constructor() method in your Domain Object you have to call
* @return int the uid or NULL if none set yet.
*/
final public function getUid() {
- return ($this->uid === NULL ? NULL : (int)$this->uid);
+ if ($this->uid !== NULL) {
+ return (int)$this->uid;
+ } else {
+ return NULL;
+ }
}
-
+
/**
* Reconstitutes a property. Only for internal use.
*
*/
public function _getProperties() {
$properties = get_object_vars($this);
- unset($properties['_cleanProperties']);
+ foreach ($properties as $propertyName => $propertyValue) {
+ if ($propertyName{0} === '_') {
+ unset($properties[$propertyName]);
+ }
+ }
return $properties;
}
* @return boolean TRUE if the object has been cloned
*/
public function _isClone() {
- return $this->isClone;
+ return $this->_isClone;
}
/**
* @param boolean $clone
*/
public function _setClone($clone) {
- $this->isClone = (boolean)$clone;
+ $this->_isClone = (boolean)$clone;
}
/**
* @return void
*/
public function __clone() {
- $this->isClone = TRUE;
+ $this->_isClone = TRUE;
}
+
}
?>
\ No newline at end of file