Sets action_type

@param string $action_type action_type

@return $this
503457
public function setActionType($action_type)
    {
        $allowedValues = $this->getActionTypeAllowableValues();
        if (!in_array($action_type, $allowedValues, true)) {
            throw new \InvalidArgumentException(
                sprintf(
                    "Invalid value for 'action_type', must be one of '%s'",
                    implode("', '", $allowedValues)
                )
            );
        }
        $this->container['action_type'] = $action_type;

        return $this;
    }
63708
public function setCurrentAction($action,array $actionArgs = array()){
        $action = (string) $action;
        if (array_key_exists($action,$this->actions)){
            $this->action = $action;
            $this->configureAction($this->action,$actionArgs);
        }
        return $this;
    }
286411
public function removeActionType(\BlackForest\PiwikBundle\Entity\PiwikActionType $actionType)
    {
        return $this->actionType->removeElement($actionType);
    }
793503
public function setAction(string $action)
    {
        $string = new CamelCase($action);
        $this->action = $string->camelize();
    }
1299247
protected function setAction($action)
    {
        $this->action = trim(strtoupper($action));

        //	Check verb aliases, set correct action allowing for closures
        if (null !== ($alias = array_get($this->verbAliases, $this->action))) {
            //	A closure?
            if (in_array($alias, Verbs::getDefinedConstants()) || !is_callable($alias)) {
                //	Set original and work with alias
                $this->originalAction = $this->action;
                $this->action = $alias;
            }
        }

        return $this;
    }
446772
public function setTypes($attr, $type = null)
    {
        if (is_array($attr))
            $this->inputType = array_merge($this->inputType, $attr);
        else
            $this->inputType[$attr] = $type;

        return $this;
    }
323833
func (s *Action) SetActionType(v string) *Action {
	s.ActionType = &v
	return s
}
530983
public function set_object_type( $object_type ) {
		if ( ! in_array( $object_type, $supported = [ 'user', 'comment', 'term', 'post' ] ) ) {
			// @codingStandardsIgnoreLine
			_doing_it_wrong( __FUNCTION__, 'The object type must be one of: ' . implode( ', ', $supported ), null );
		}

		$this->object_type = $object_type;

		return $this;
	}
132367
public function setActionId($actionId)
    {
        if ($actionId !== null) {
            if (!is_numeric($actionId)) {
                $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $actionId);
                throw new ArgumentNotNumericException($errMsg);
            }
            $this->actionId = (integer)$actionId;
        }

        return $this;
    }
41530
private static function normaliseActionString($actionType, $actionString)
    {
        $actionString = Common::unsanitizeInputValue($actionString);

        if (self::isActionTypeStoredUnsanitized($actionType)) {
            return $actionString;
        }

        return Common::sanitizeInputValue($actionString);
    }
384215
public static MgmtActionType convertActionType(final ActionType actionType) {
        if (actionType == null) {
            return null;
        }

        switch (actionType) {
        case SOFT:
            return MgmtActionType.SOFT;
        case FORCED:
            return MgmtActionType.FORCED;
        case TIMEFORCED:
            return MgmtActionType.TIMEFORCED;
        case DOWNLOAD_ONLY:
            return MgmtActionType.DOWNLOAD_ONLY;
        default:
            throw new IllegalStateException("Action Type is not supported");
        }
    }
803401
public function setType($type)
    {
        $this->type = in_array($type = strtolower($type), ['button', 'submit', 'reset']) ? $type : 'button';

        return $this;
    }
325613
public function setType(Type $type)
    {
        if ($this->type !== $type) {
            $this->type = $type;
            $type->setItem($this);
        }

        return $this;
    }
244265
public function setType($type)
    {
        if ($this->formHelper->getFieldType($type)) {
            $this->type = $type;
        }

        return $this;
    }
1095423
public function setType( $type )
    {
        $this->type = is_int( $type ) ? $type : self::getStorableType( $type );
        return $this;
    }
1000931
public function setActions($actions): Controller
    {
        $this->controllerRoutes = array_merge($this->controllerRoutes, $actions);

        return $this;
    }
784200
public function setAdapterAction($action)
    {
        if (true===$this->isInited) {
            $this->resetOutput();
        }
        $this->__adapter_action = $action;
        return $this;
    }