Skip to content

Commit

Permalink
Set Object Name
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Oct 14, 2022
1 parent 53c353c commit 4638f36
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/AbraFlexi/RO.php
Expand Up @@ -438,6 +438,7 @@ public function __construct($init = null, $options = []) {
if (!empty($init)) {
$this->processInit($init);
}
$this->setObjectName(array_key_exists('objectName', $options) ? $options['objectName'] : null);
}

/**
Expand Down Expand Up @@ -469,7 +470,6 @@ public function setUp(array $options = []) {
$options = array_merge(self::companyUrlToOptions($options['companyUrl']),
$options);
}

$this->setupProperty($options, 'company', 'ABRAFLEXI_COMPANY');
$this->setupProperty($options, 'url', 'ABRAFLEXI_URL');
$this->setupProperty($options, 'user', 'ABRAFLEXI_LOGIN');
Expand Down Expand Up @@ -628,7 +628,7 @@ public function processInit($init) {
} elseif (!is_object($init) && preg_match('/\.(json|xml|csv)/', strval($init))) {
$this->takeData($this->getFlexiData((($init[0] != '/') ? $this->evidenceUrlWithSuffix($init) : $init)));
} else {
if($this->autoload === false){
if ($this->autoload === false) {
$this->setMyKey($init);
} else {
$this->loadFromAbraFlexi($init);
Expand Down Expand Up @@ -1887,7 +1887,6 @@ public function getPostFields() {
return $this->postFields;
}


/**
* Prepare "IN" subselect
*
Expand Down Expand Up @@ -2484,7 +2483,7 @@ public function setMyKey($myKeyValue) {
$this->updateApiURL();
return $res;
}

/**
* Set or get ignore not found pages flag
*
Expand Down

0 comments on commit 4638f36

Please sign in to comment.