public function post($field = false, $defaultValue = null) { // the only post that matters is the one for this attribute's name space $req = $this->requestArray == false ? $_POST : $this->requestArray; if (is_object($this->attributeKey) && is_array($req['akID'])) { $p = $req['akID'][$this->attributeKey->getAttributeKeyID()]; if ($field) { return $p[$field]; } return $p; } return parent::post($field, $defaultValue); }
public function post($field = false, $defaultValue = null) { // the only post that matters is the one for this attribute's name space $req = $this->requestArray == false ? $_POST : $this->requestArray; if (is_array($req['_bf'])) { $identifier = $this->identifier; $b = $this->getBlockObject(); if (is_object($b)) { $xc = $b->getBlockCollectionObject(); if (is_object($xc)) { $identifier .= '_' . $xc->getCollectionID(); } } $p = $req['_bf'][$identifier]; if ($field) { return $p[$field]; } return $p; } return parent::post($field, $defaultValue); }
public function post($field = false, $defaultValue = null) { // the only post that matters is the one for this attribute's name space $req = $this->requestArray == false ? $this->request->request->all() : $this->requestArray; if (is_object($this->attributeKey) && isset($req['akID']) && is_array($req['akID'])) { $akID = $this->attributeKey->getAttributeKeyID(); $p = isset($req['akID'][$akID]) ? $req['akID'][$akID] : null; if ($field) { return is_array($p) && isset($p[$field]) ? $p[$field] : null; } return $p; } return parent::post($field, $defaultValue); }