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 $this|\gossi\trixionary\model\Video
186148
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->setIsTutorial($value);
                break;
            case 5:
                $this->setAthlete($value);
                break;
            case 6:
                $this->setAthleteId($value);
                break;
            case 7:
                $this->setUploaderId($value);
                break;
            case 8:
                $this->setSkillId($value);
                break;
            case 9:
                $this->setReferenceId($value);
                break;
            case 10:
                $this->setPosterUrl($value);
                break;
            case 11:
                $this->setProvider($value);
                break;
            case 12:
                $this->setProviderId($value);
                break;
            case 13:
                $this->setPlayerUrl($value);
                break;
            case 14:
                $this->setWidth($value);
                break;
            case 15:
                $this->setHeight($value);
                break;
        } // switch()

        return $this;
    }
16283
public function getByPosition($pos)
    {
        switch ($pos) {
            case 0:
                return $this->getId();
                break;
            case 1:
                return $this->getLocale();
                break;
            case 2:
                return $this->getValue();
                break;
            default:
                return null;
                break;
        } // switch()
    }
1331824
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setUserId($value);
                break;
            case 2:
                $this->setCustomerId($value);
                break;
        } // switch()
    }
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;
    }
661184
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setKey($value);
                break;
            case 2:
                $this->setValue($value);
                break;
        } // switch()
    }
1229572
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setLogin($value);
                break;
            case 2:
                $this->setMapuid($value);
                break;
            case 3:
                $this->setScore($value);
                break;
            case 4:
                $this->setCreatedAt($value);
                break;
            case 5:
                $this->setUpdatedAt($value);
                break;
        } // switch()

        return $this;
    }
465223
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setSourceId($value);
                break;
            case 2:
                $this->setPageid($value);
                break;
            case 3:
                $this->setTitle($value);
                break;
            case 4:
                $this->setFiles($value);
                break;
            case 5:
                $this->setSubcats($value);
                break;
            case 6:
                $this->setPages($value);
                break;
            case 7:
                $this->setSize($value);
                break;
            case 8:
                $this->setHidden($value);
                break;
            case 9:
                $this->setCreatedAt($value);
                break;
            case 10:
                $this->setUpdatedAt($value);
                break;
            case 11:
                $this->setTreeLeft($value);
                break;
            case 12:
                $this->setTreeRight($value);
                break;
            case 13:
                $this->setTreeLevel($value);
                break;
        } // switch()

        return $this;
    }
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()
    }
1287343
public function setCoreServerProtocol($value)
    {
        $this->setFieldName('server_protocol');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
857997
public function setCoreUploadFlash($value)
    {
        $this->setFieldName('upload_flash');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
203880
public function setPosition($value)
    {
        if (!ControlPosition::getIsValid($value)) {
            throw new InvalidConfigException('Unknown "position" value');
        }
        $this->options['position'] = new JsExpression($value);
    }
1268749
public function setRootText( $value )
    {
        $content = $this->getDependentContent();

        if ( $content )
        {
            $content->leadText = $value;
        }

        return $this;
    }
479242
public function setPart($position, $value)
    {
        if (!$this->fieldFactory->getField($position)->validate($value)) {
            throw new InvalidArgumentException(
                'Invalid CRON field value ' . $value . ' as position ' . $position
            );
        }

        $this->cronParts[$position] = $value;

        return $this;
    }
399324
public function getByPosition($pos)
    {
        switch ($pos) {
            case 0:
                return $this->getCode();
                break;
            case 1:
                return $this->getAtosCode();
                break;
            case 2:
                return $this->getDecimals();
                break;
            default:
                return null;
                break;
        } // switch()
    }
402517
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setType($value);
                break;
            case 2:
                $this->setDateTime($value);
                break;
            case 3:
                $this->setUserId($value);
                break;
            case 4:
                $this->setUsername($value);
                break;
            case 5:
                $this->setSessionId($value);
                break;
            case 6:
                $this->setClientAddress($value);
                break;
            case 7:
                $this->setClientIp($value);
                break;
            case 8:
                $this->setClientAgent($value);
                break;
            case 9:
                $this->setClientPlatform($value);
                break;
        } // switch()

        return $this;
    }
738608
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setUserId($value);
                break;
            case 1:
                $this->setRoleId($value);
                break;
        } // switch()
    }
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()
    }