|
|
@@ -30,7 +30,7 @@ EOT;
|
|
|
Lib::loadClass('SchemaFactory');
|
|
|
|
|
|
try {
|
|
|
-
|
|
|
+ error_log('objectStructureAction for '.$namespace);
|
|
|
if (empty($namespace)) throw new Exception("Missing param namespace");
|
|
|
$item = SchemaFactory::loadDefaultObject('SystemObject')->getItem($namespace, [ 'propertyName' => '*,field' ]);
|
|
|
$this->objectStructView($item);
|
|
|
@@ -49,24 +49,12 @@ public function objectStructView($item) {
|
|
|
|
|
|
$getBackRefList=ACL::getBackRefList($item['namespace']);
|
|
|
|
|
|
- /*
|
|
|
- //echo "item";
|
|
|
- //error_log('getBackRefList, item:');
|
|
|
- //error_log($item);
|
|
|
-
|
|
|
- //print_r($item);
|
|
|
- //echo "thisGetLink";
|
|
|
- //print_r($thisGetLink);
|
|
|
- //echo "getBackRefList";
|
|
|
-
|
|
|
- //print_r($getBackRefList);
|
|
|
- */
|
|
|
-
|
|
|
- foreach($getBackRefList as $backref) {
|
|
|
- $exploded_ns= explode('/', $backref['namespace']);
|
|
|
+
|
|
|
+ foreach($getBackRefList as $ind=>$backref) {
|
|
|
+ $exploded_ns = explode('/', $backref['namespace']);
|
|
|
$return['backrefs'][]=$exploded_ns[1].'__x3A__'.$exploded_ns[2],':',$exploded_ns[3];
|
|
|
}
|
|
|
- foreach($item['field'] as $refs) {
|
|
|
+ foreach($item['field'] as $ind=>$refs) {
|
|
|
|
|
|
$return['refs'][]=$refs['fieldNamespace'];
|
|
|
}
|
|
|
@@ -74,38 +62,7 @@ public function objectStructView($item) {
|
|
|
$return['table']=$item['name'];
|
|
|
$return['primaryKey']=$item['primaryKey'];
|
|
|
|
|
|
- /*
|
|
|
-
|
|
|
- getBackRefList=Array(
|
|
|
- [0] => Array
|
|
|
- (
|
|
|
- [namespace] => default_db/BI_audit_CEIDG/BI_audit_CEIDG
|
|
|
- [idInstance] => 28
|
|
|
- )
|
|
|
-
|
|
|
-
|
|
|
- /*
|
|
|
|
|
|
- /*
|
|
|
- item=Array (
|
|
|
- [field] => Array (
|
|
|
- [0] => Array
|
|
|
- (
|
|
|
- [namespace] => default_db/BI_audit_CEIDG_pelnomocnicy/BI_audit_CEIDG_pelnomocnicy/default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI
|
|
|
- [fieldNamespace] => default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI
|
|
|
- [_rootTableName] => BI_audit_CEIDG_pelnomocnicy
|
|
|
- [objectNamespace] => default_db/BI_audit_CEIDG_pelnomocnicy/BI_audit_CEIDG_pelnomocnicy
|
|
|
- [xsdType] => ref:default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI:BI_audit_ENERGA_RUM_KONTRAHENCI
|
|
|
-
|
|
|
- [isActive] => 1
|
|
|
- [isLocal] => 0
|
|
|
- [sortPrio] => 0
|
|
|
- )
|
|
|
- )
|
|
|
-
|
|
|
-
|
|
|
- )
|
|
|
- */
|
|
|
|
|
|
return $return;
|
|
|
|