Changeset 17610
- Timestamp:
- 09/19/08 14:47:42 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.core/midcom/core/privilege.php
r17580 r17610 47 47 class midcom_core_privilege extends midcom_core_privilege_db 48 48 { 49 var $guid = '';50 var $id = 0;49 protected $__guid = ''; 50 protected $__id = 0; 51 51 52 52 /** … … 112 112 { 113 113 // Explicity manual listing for performance reasons. 114 $this-> guid = $src['guid'];115 $this-> id = $src['id'];114 $this->__guid = $src['guid']; 115 $this->__id = $src['id']; 116 116 $this->objectguid = $src['objectguid']; 117 117 $this->name = $src['name']; … … 331 331 { 332 332 debug_push_class(__CLASS__, __FUNCTION__); 333 debug_add("Insufficient privileges on the content object with the GUID '{$this-> guid}', midgard:update and midgard:privileges required.",333 debug_add("Insufficient privileges on the content object with the GUID '{$this->__guid}', midgard:update and midgard:privileges required.", 334 334 MIDCOM_LOG_INFO); 335 335 debug_pop(); … … 945 945 if ($this->value == MIDCOM_PRIVILEGE_INHERIT) 946 946 { 947 if ( $this-> guid948 || $this-> id)947 if ( $this->__guid 948 || $this->__id) 949 949 { 950 950 // Already a persistent record, drop it. … … 978 978 } 979 979 980 if ( $this-> guid981 || $this-> id)982 { 983 if ($this-> guid)984 { 985 $privilege = new midcom_core_privilege_db($this-> guid);980 if ( $this->__guid 981 || $this->__id) 982 { 983 if ($this->__guid) 984 { 985 $privilege = new midcom_core_privilege_db($this->__guid); 986 986 } 987 987 else 988 988 { 989 989 $privilege = new midcom_core_privilege_db(); 990 $privilege->get_by_id($this-> id);990 $privilege->get_by_id($this->__id); 991 991 } 992 992 $this->_copy_to_object($privilege); … … 1013 1013 return false; 1014 1014 } 1015 $this-> guid = $privilege->guid;1016 $this-> id = $privilege->id;1015 $this->__guid = $privilege->guid; 1016 $this->__id = $privilege->id; 1017 1017 $this->objectguid = $privilege->objectguid; 1018 1018 $this->name = $privilege->name; … … 1059 1059 function drop() 1060 1060 { 1061 if ( !$this-> guid1062 && !$this-> id)1061 if ( !$this->__guid 1062 && !$this->__id) 1063 1063 { 1064 1064 debug_push_class(__CLASS__, __FUNCTION__); … … 1077 1077 } 1078 1078 1079 if ($this-> guid)1080 { 1081 $privilege = new midcom_core_privilege_db($this-> guid);1079 if ($this->__guid) 1080 { 1081 $privilege = new midcom_core_privilege_db($this->__guid); 1082 1082 } 1083 1083 else … … 1085 1085 // Unserialized objects have only ID in 8.09 1086 1086 $privilege = new midcom_core_privilege_db(); 1087 $privilege->get_by_id($this-> id);1087 $privilege->get_by_id($this->__id); 1088 1088 } 1089 1089
