@@ 1973-1987 (lines=15) @@ | ||
1970 | $isOwn = FALSE; |
|
1971 | $isShared = FALSE; |
|
1972 | ||
1973 | if ( !ctype_lower( $property ) ) { |
|
1974 | $property = $this->beau( $property ); |
|
1975 | if ( strpos( $property, 'xown' ) === 0 && ctype_upper( substr( $property, 4, 1 ) ) ) { |
|
1976 | $property = substr($property, 1); |
|
1977 | $listName = lcfirst( substr( $property, 3 ) ); |
|
1978 | $isEx = TRUE; |
|
1979 | $isOwn = TRUE; |
|
1980 | $this->__info['sys.exclusive-'.$listName] = TRUE; |
|
1981 | } elseif ( strpos( $property, 'own' ) === 0 && ctype_upper( substr( $property, 3, 1 ) ) ) { |
|
1982 | $isOwn = TRUE; |
|
1983 | $listName = lcfirst( substr( $property, 3 ) ); |
|
1984 | } elseif ( strpos( $property, 'shared' ) === 0 && ctype_upper( substr( $property, 6, 1 ) ) ) { |
|
1985 | $isShared = TRUE; |
|
1986 | } |
|
1987 | } |
|
1988 | ||
1989 | $fieldLink = $property . '_id'; |
|
1990 | $exists = isset( $this->properties[$property] ); |
|
@@ 2113-2127 (lines=15) @@ | ||
2110 | $isOwn = FALSE; |
|
2111 | $isShared = FALSE; |
|
2112 | ||
2113 | if ( !ctype_lower( $property ) ) { |
|
2114 | $property = $this->beau( $property ); |
|
2115 | if ( strpos( $property, 'xown' ) === 0 && ctype_upper( substr( $property, 4, 1 ) ) ) { |
|
2116 | $property = substr($property, 1); |
|
2117 | $listName = lcfirst( substr( $property, 3 ) ); |
|
2118 | $isEx = TRUE; |
|
2119 | $isOwn = TRUE; |
|
2120 | $this->__info['sys.exclusive-'.$listName] = TRUE; |
|
2121 | } elseif ( strpos( $property, 'own' ) === 0 && ctype_upper( substr( $property, 3, 1 ) ) ) { |
|
2122 | $isOwn = TRUE; |
|
2123 | $listName = lcfirst( substr( $property, 3 ) ); |
|
2124 | } elseif ( strpos( $property, 'shared' ) === 0 && ctype_upper( substr( $property, 6, 1 ) ) ) { |
|
2125 | $isShared = TRUE; |
|
2126 | } |
|
2127 | } |
|
2128 | ||
2129 | $hasAlias = (!is_null($this->aliasName)); |
|
2130 | $differentAlias = ($hasAlias && $isOwn && isset($this->__info['sys.alias.'.$listName])) ? |