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
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()
    }
553367
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setLocale($value);
                break;
            case 2:
                $this->setTitle($value);
                break;
            case 3:
                $this->setDescription($value);
                break;
            case 4:
                $this->setChapo($value);
                break;
            case 5:
                $this->setPostscriptum($value);
                break;
        } // switch()
    }
309743
public void setCursorPos(int pos) {
		cursorPos = pos;
		if (cursorPos > value.length()) {
			cursorPos = value.length();
		}
	}
1331156
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setCustomerId($value);
                break;
            case 1:
                $this->setCustomerGroupId($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;
    }
862772
protected function setNode($type, $pos)
    {
        if ($this->nodeType == 'tag') {
            // set tag specific vars to null
            // $type == tag should not be called here
            // see this::parseTag() for more
            $this->tagName = null;
            $this->tagAttributes = null;
            $this->isStartTag = null;
            $this->isEmptyTag = null;
            $this->isBlockElement = null;

        }
        $this->nodeType = $type;
        $this->node = substr($this->html, 0, $pos);
        $this->html = substr($this->html, $pos);
    }
1145529
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setDtCall($value);
                break;
            case 2:
                $this->setRemoteAppId($value);
                break;
            case 3:
                $this->setStatuscode($value);
                break;
            case 4:
                $this->setLastResponse($value);
                break;
        } // switch()
    }
799318
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setDealerId($value);
                break;
            case 2:
                $this->setAdminId($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;
        } // switch()
    }
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);
            }
        }
    }
83362
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setSportId($value);
                break;
            case 2:
                $this->setName($value);
                break;
            case 3:
                $this->setAlternativeName($value);
                break;
            case 4:
                $this->setSlug($value);
                break;
            case 5:
                $this->setDescription($value);
                break;
            case 6:
                $this->setHistory($value);
                break;
            case 7:
                $this->setIsTranslation($value);
                break;
            case 8:
                $this->setIsRotation($value);
                break;
            case 9:
                $this->setIsAcyclic($value);
                break;
            case 10:
                $this->setIsCyclic($value);
                break;
            case 11:
                $this->setLongitudinalFlags($value);
                break;
            case 12:
                $this->setLatitudinalFlags($value);
                break;
            case 13:
                $this->setTransversalFlags($value);
                break;
            case 14:
                $this->setMovementDescription($value);
                break;
            case 15:
                $this->setSequencePictureUrl($value);
                break;
            case 16:
                $this->setVariationOfId($value);
                break;
            case 17:
                $this->setStartPositionId($value);
                break;
            case 18:
                $this->setEndPositionId($value);
                break;
            case 19:
                $this->setIsComposite($value);
                break;
            case 20:
                $this->setIsMultiple($value);
                break;
            case 21:
                $this->setMultipleOfId($value);
                break;
            case 22:
                $this->setMultiplier($value);
                break;
            case 23:
                $this->setGeneration($value);
                break;
            case 24:
                $this->setImportance($value);
                break;
            case 25:
                $this->setPictureId($value);
                break;
            case 26:
                $this->setVideoId($value);
                break;
            case 27:
                $this->setTutorialId($value);
                break;
            case 28:
                $this->setKstrukturId($value);
                break;
            case 29:
                $this->setFunctionPhaseId($value);
                break;
            case 30:
                $this->setObjectId($value);
                break;
            case 31:
                $this->setVersion($value);
                break;
            case 32:
                $this->setVersionCreatedAt($value);
                break;
            case 33:
                $this->setVersionComment($value);
                break;
        } // switch()

        return $this;
    }
1067881
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setName($value);
                break;
            case 2:
                $this->setCreateDate($value);
                break;
            case 3:
                $this->setDescription($value);
                break;
            case 4:
                $this->setUpdateDate($value);
                break;
            case 5:
                $this->setStatus($value);
                break;
            case 6:
                $this->setParentId($value);
                break;
        } // switch()

        return $this;
    }
462352
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setCategoryId($value);
                break;
            case 1:
                $this->setPageId($value);
                break;
        } // switch()

        return $this;
    }
1048255
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setTrackuid($value);
                break;
            case 2:
                $this->setGbxmapname($value);
                break;
            case 3:
                $this->setTrackid($value);
                break;
            case 4:
                $this->setUserid($value);
                break;
            case 5:
                $this->setUsername($value);
                break;
            case 6:
                $this->setUploadedat($value);
                break;
            case 7:
                $this->setUpdatedat($value);
                break;
            case 8:
                $this->setMaptype($value);
                break;
            case 9:
                $this->setTitlepack($value);
                break;
            case 10:
                $this->setStylename($value);
                break;
            case 11:
                $this->setDisplaycost($value);
                break;
            case 12:
                $this->setModname($value);
                break;
            case 13:
                $this->setLightmap($value);
                break;
            case 14:
                $this->setExeversion($value);
                break;
            case 15:
                $this->setExebuild($value);
                break;
            case 16:
                $this->setEnvironmentname($value);
                break;
            case 17:
                $this->setVehiclename($value);
                break;
            case 18:
                $this->setUnlimiterrequired($value);
                break;
            case 19:
                $this->setRoutename($value);
                break;
            case 20:
                $this->setLengthname($value);
                break;
            case 21:
                $this->setLaps($value);
                break;
            case 22:
                $this->setDifficultyname($value);
                break;
            case 23:
                $this->setReplaytypename($value);
                break;
            case 24:
                $this->setReplaywrid($value);
                break;
            case 25:
                $this->setReplaywrtime($value);
                break;
            case 26:
                $this->setReplaywruserid($value);
                break;
            case 27:
                $this->setReplaywrusername($value);
                break;
            case 28:
                $this->setRatingvotecount($value);
                break;
            case 29:
                $this->setRatingvoteaverage($value);
                break;
            case 30:
                $this->setReplaycount($value);
                break;
            case 31:
                $this->setTrackvalue($value);
                break;
            case 32:
                $this->setComments($value);
                break;
            case 33:
                $this->setCommentscount($value);
                break;
            case 34:
                $this->setAwardcount($value);
                break;
            case 35:
                $this->setHasscreenshot($value);
                break;
            case 36:
                $this->setHasthumbnail($value);
                break;
            case 37:
                $this->setHasghostblocks($value);
                break;
            case 38:
                $this->setEmbeddedobjectscount($value);
                break;
        } // switch()

        return $this;
    }
1279028
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setRoleId($value);
                break;
            case 1:
                $this->setPermissionId($value);
                break;
        } // switch()

        return $this;
    }
609583
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setPartId($value);
                break;
            case 1:
                $this->setCompositeId($value);
                break;
        } // switch()

        return $this;
    }
343019
public function ensure($pos, $length)
    {
        if ($pos >= $this->position
            && $pos < ($this->position + $this->bufferLength)
            && ($this->position + $this->bufferLength) >= ($pos + $length)
        ) {
            $this->offset = $pos - $this->position;
        } else {
            $this->reset($pos, $length);
        }
    }
85388
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setType($value);
                break;
            case 2:
                $this->setSkillId($value);
                break;
            case 3:
                $this->setTitle($value);
                break;
            case 4:
                $this->setDescendantClass($value);
                break;
        } // switch()

        return $this;
    }