Sets a field from the object by Position as specified in the xml schema.
Zero-based.

@param      int $pos position in xml schema
@param      mixed $value field value
@return void
510858
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setPersonId($value);
                break;
            case 2:
                $this->setFunctionId($value);
                break;
            case 3:
                $this->setCreatedAt($value);
                break;
            case 4:
                $this->setUpdatedAt($value);
                break;
            case 5:
                $this->setVersion($value);
                break;
            case 6:
                $this->setVersionCreatedAt($value);
                break;
            case 7:
                $this->setVersionCreatedBy($value);
                break;
            case 8:
                $this->setPersonIdVersion($value);
                break;
            case 9:
                $this->setFunctionIdVersion($value);
                break;
        } // switch()
    }
409929
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setSkillId($value);
                break;
            case 2:
                $this->setAncestorId($value);
                break;
            case 3:
                $this->setPosition($value);
                break;
        } // switch()

        return $this;
    }
1063824
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setStructureNodeId($value);
                break;
            case 1:
                $this->setParentId($value);
                break;
        } // switch()

        return $this;
    }
848406
public function setStatus($position, $value)
    {
        $status = pow(2, $position - 1);
        if ($value) {
            $status = $this['status'] | $status;
        } elseif ($this['status'] !== null) {
            $status = $this['status'] & ~$status;
        } else {
            $status = ~$status;
        }
        $this['status'] = $status & 0xFFFF;

        return $this;
    }
572948
private void set(int pos, String s) {
        buffer.delete(pos, buffer.length());
        buffer.insert(pos, s);
    }
460671
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setCode($value);
                break;
            case 2:
                $this->setEn($value);
                break;
            case 3:
                $this->setDe($value);
                break;
        } // switch()
    }
1000189
public function erase(string $pos): void
    {
        $keys = array_keys($this->map);

        unset($this->map[$keys[$pos]]);
    }
626279
public function setPosition($posX, $posY, $posZ = null)
    {
        $this->setX($posX)
             ->setY($posY);
        if ($posZ !== null) {
            $this->setZ($posZ);
        }
        return $this;
    }
237651
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setVisible($value);
                break;
            case 2:
                $this->setAddress1($value);
                break;
            case 3:
                $this->setAddress2($value);
                break;
            case 4:
                $this->setAddress3($value);
                break;
            case 5:
                $this->setZipcode($value);
                break;
            case 6:
                $this->setCity($value);
                break;
            case 7:
                $this->setCountryId($value);
                break;
            case 8:
                $this->setLatitude($value);
                break;
            case 9:
                $this->setLongitude($value);
                break;
            case 10:
                $this->setCreatedAt($value);
                break;
            case 11:
                $this->setUpdatedAt($value);
                break;
            case 12:
                $this->setVersion($value);
                break;
            case 13:
                $this->setVersionCreatedAt($value);
                break;
            case 14:
                $this->setVersionCreatedBy($value);
                break;
            case 15:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerShedulesIds($value);
                break;
            case 16:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerShedulesVersions($value);
                break;
            case 17:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerContactIds($value);
                break;
            case 18:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerContactVersions($value);
                break;
            case 19:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerContentIds($value);
                break;
            case 20:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerContentVersions($value);
                break;
            case 21:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerFolderIds($value);
                break;
            case 22:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerFolderVersions($value);
                break;
            case 23:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerBrandIds($value);
                break;
            case 24:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerBrandVersions($value);
                break;
            case 25:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerProductIds($value);
                break;
            case 26:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerProductVersions($value);
                break;
            case 27:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerAdminIds($value);
                break;
            case 28:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setDealerAdminVersions($value);
                break;
        } // switch()
    }
1074538
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setMapuid($value);
                break;
            case 2:
                $this->setNblaps($value);
                break;
            case 3:
                $this->setScore($value);
                break;
            case 4:
                $this->setNbfinish($value);
                break;
            case 5:
                $this->setAvgscore($value);
                break;
            case 6:
                $this->setCheckpoints($value);
                break;
            case 7:
                $this->setPlayerId($value);
                break;
            case 8:
                $this->setCreatedAt($value);
                break;
            case 9:
                $this->setUpdatedAt($value);
                break;
        } // switch()

        return $this;
    }
707037
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setTitle($value);
                break;
            case 2:
                $this->setDescription($value);
                break;
            case 3:
                $this->setUrl($value);
                break;
            case 4:
                $this->setThumbUrl($value);
                break;
            case 5:
                $this->setSkillId($value);
                break;
            case 6:
                $this->setPhotographer($value);
                break;
            case 7:
                $this->setPhotographerId($value);
                break;
            case 8:
                $this->setAthlete($value);
                break;
            case 9:
                $this->setAthleteId($value);
                break;
            case 10:
                $this->setUploaderId($value);
                break;
        } // switch()

        return $this;
    }
276905
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setCode($value);
                break;
            case 2:
                $this->setCreatedAt($value);
                break;
            case 3:
                $this->setUpdatedAt($value);
                break;
        } // switch()
    }
198179
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setName($value);
                break;
            case 2:
                $this->setStreet($value);
                break;
            case 3:
                $this->setZip($value);
                break;
            case 4:
                $this->setCity($value);
                break;
            case 5:
                $this->setCountryId($value);
                break;
            case 6:
                $this->setPhone($value);
                break;
            case 7:
                $this->setFax($value);
                break;
            case 8:
                $this->setEmail($value);
                break;
            case 9:
                $this->setLegalform($value);
                break;
            case 10:
                $this->setLogo($value);
                break;
            case 11:
                $this->setCreated($value);
                break;
            case 12:
                $this->setNotes($value);
                break;
        } // switch()
    }
167268
public function setCursor($pos)
    {
        if ($pos < 1) {
            $this->cursor = 1;
        } else {
            if ($pos > $this->nbResults) {
                $this->cursor = $this->nbResults;
            } else {
                $this->cursor = $pos;
            }
        }
    }
486873
public function setValue($value)
    {
        if (is_scalar($value) or is_null($value)) {
            return;
        }
        foreach ($value as $name => $val) {
            if ($field = $this[$name]) {
                $field->getElement()->setValue($val);
            }
        }
    }
1247699
public function setPositionAttribute($value)
    {
        if ($this->position === $value) {
            return;
        }
        $this->old_position = $this->position;
        $this->attributes[$this->getPositionColumn()] = intval($value);
    }
772620
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setType($value);
                break;
            case 2:
                $this->setTitle($value);
                break;
            case 3:
                $this->setYear($value);
                break;
            case 4:
                $this->setPublisher($value);
                break;
            case 5:
                $this->setJournal($value);
                break;
            case 6:
                $this->setNumber($value);
                break;
            case 7:
                $this->setSchool($value);
                break;
            case 8:
                $this->setAuthor($value);
                break;
            case 9:
                $this->setEdition($value);
                break;
            case 10:
                $this->setVolume($value);
                break;
            case 11:
                $this->setAddress($value);
                break;
            case 12:
                $this->setEditor($value);
                break;
            case 13:
                $this->setHowpublished($value);
                break;
            case 14:
                $this->setNote($value);
                break;
            case 15:
                $this->setBooktitle($value);
                break;
            case 16:
                $this->setPages($value);
                break;
            case 17:
                $this->setUrl($value);
                break;
            case 18:
                $this->setLastchecked($value);
                break;
            case 19:
                $this->setManaged($value);
                break;
        } // switch()

        return $this;
    }