设置状态值
@param $position 二进制标志位
@param $value
@param null $baseOn
@return int
767020
public static function set($position, $value, $baseOn = null) {
        $t = pow(2, $position - 1);
        if($value) {
            $t = $baseOn | $t;
        } elseif ($baseOn !== null) {
            $t = $baseOn & ~$t;
        } else {
            $t = ~$t;
        }
        return $t & 0xFFFF;
    }
1331156
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setCustomerId($value);
                break;
            case 1:
                $this->setCustomerGroupId($value);
                break;
        } // switch()
    }
860939
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setFeatureAvId($value);
                break;
            case 2:
                $this->setFeatureFeatureTypeId($value);
                break;
            case 3:
                $this->setLocale($value);
                break;
            case 4:
                $this->setValue($value);
                break;
            case 5:
                $this->setCreatedAt($value);
                break;
            case 6:
                $this->setUpdatedAt($value);
                break;
        } // switch()
    }
602700
public function setPosition( $value )
	{
		if( $value == $this->getPosition() ) { return; }

		if( $value !== null && $value < 1 ) {
			throw new MShop_Order_Exception( sprintf( 'Order product position "%1$s" must be greater than 0', $value ) );
		}

		$this->_values['pos'] = ( $value !== null ? (int) $value : null );
		$this->setModified();
	}
997332
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setSenderlogin($value);
                break;
            case 2:
                $this->setReceiverlogin($value);
                break;
            case 3:
                $this->setTransactionid($value);
                break;
            case 4:
                $this->setBillid($value);
                break;
            case 5:
                $this->setAmount($value);
                break;
            case 6:
                $this->setMessage($value);
                break;
            case 7:
                $this->setStatus($value);
                break;
            case 8:
                $this->setDatetime($value);
                break;
        } // switch()

        return $this;
    }
436131
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setTitle($value);
                break;
            case 2:
                $this->setSlug($value);
                break;
            case 3:
                $this->setAthleteLabel($value);
                break;
            case 4:
                $this->setObjectSlug($value);
                break;
            case 5:
                $this->setObjectLabel($value);
                break;
            case 6:
                $this->setObjectPluralLabel($value);
                break;
            case 7:
                $this->setSkillSlug($value);
                break;
            case 8:
                $this->setSkillLabel($value);
                break;
            case 9:
                $this->setSkillPluralLabel($value);
                break;
            case 10:
                $this->setSkillPictureUrl($value);
                break;
            case 11:
                $this->setGroupSlug($value);
                break;
            case 12:
                $this->setGroupLabel($value);
                break;
            case 13:
                $this->setGroupPluralLabel($value);
                break;
            case 14:
                $this->setTransitionLabel($value);
                break;
            case 15:
                $this->setTransitionPluralLabel($value);
                break;
            case 16:
                $this->setTransitionsSlug($value);
                break;
            case 17:
                $this->setPositionSlug($value);
                break;
            case 18:
                $this->setPositionLabel($value);
                break;
            case 19:
                $this->setFeatureComposition($value);
                break;
            case 20:
                $this->setFeatureTester($value);
                break;
            case 21:
                $this->setIsDefault($value);
                break;
        } // switch()

        return $this;
    }
1307380
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setFile($value);
                break;
            case 2:
                $this->setPersonId($value);
                break;
            case 3:
                $this->setVisible($value);
                break;
            case 4:
                $this->setPosition($value);
                break;
            case 5:
                $this->setCreatedAt($value);
                break;
            case 6:
                $this->setUpdatedAt($value);
                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()
    }
954713
public function setBaseId( $value )
	{
		if ( $value == $this->getBaseId() ) { return; }

		$this->_values['baseid'] = ( $value !== null ? (int) $value : null );
		$this->setModified();
	}
1107017
function set_positioner(Positioner $posn) {
    $this->_positioner = $posn;
    if ( $this->_frame instanceof Frame_Decorator )
      $this->_frame->set_positioner($posn);
  }
42785
public static function uInt(&$value, $options = ['max'=>null, 'min'=>null, 'default'=>null])
    {
        $value = (int)$value;
        self::processUNum($value, $options);
        return $value;
    }
865833
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;
            case 4:
                $this->setVersion($value);
                break;
            case 5:
                $this->setVersionCreatedAt($value);
                break;
            case 6:
                $this->setVersionCreatedBy($value);
                break;
            case 7:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setPersonFunctionLinkIds($value);
                break;
            case 8:
                if (!is_array($value)) {
                    $v = trim(substr($value, 2, -2));
                    $value = $v ? explode(' | ', $v) : array();
                }
                $this->setPersonFunctionLinkVersions($value);
                break;
        } // switch()
    }
207319
public static final function insert(array $Source, int $position, $value): array {
		return $position > 0 ? self::append(array_slice($Source, 0, $position), self::prepend(array_slice($Source,
			$position), self::cast($value))) : self::prepend($Source, self::cast($value));
	}
972332
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setId($value);
                break;
            case 1:
                $this->setPersonId($value);
                break;
            case 2:
                $this->setTeamId($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->setTeamIdVersion($value);
                break;
        } // switch()
    }
738608
public function setByPosition($pos, $value)
    {
        switch ($pos) {
            case 0:
                $this->setUserId($value);
                break;
            case 1:
                $this->setRoleId($value);
                break;
        } // switch()
    }
945231
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;
        } // switch()
    }
796820
static function position($name, $value=null, $settings=[])
    {
        if (!isset($settings['description'])) {
            $settings['description'] = '位置可设为：1到9的数字表示九宫格的位置, 或100|30, 或 center|center, 或100|left';
        }
        
        return static::input('text', $name, $value, $settings);
    }