删除数据
@param string $name
764410
public function remove($name)
    {
        if(!is_array($name))
        {
            $name = func_get_args();
        }
        foreach($name as $val)
        {
            $type = gettype($val);
            if('string' === $type)
            {
                $val = explode('.', $val);
            }
            else if('array' !== $type)
            {
                return false;
            }
            $last = array_pop($val);
            $result = &$this->data;
            foreach ($val as $value)
            {
                if (isset($result[$value]))
                {
                    $result = &$result[$value];
                }
            }
            unset($result[$last]);
        }
        return true;
    }
1062418
public function stopMeasure(string $name): void
    {
        if (App::$Debug) {
            App::$Debug->stopMeasure($name);
        }
    }
756147
public function end($name)
    {
        $this->lastOpen = null;

        $this->opens[$name] = false;
        $last = array_pop($this->stacks);
        if ($last[0] != $name) {
            throw new BlockException($name, "is unexpected, expected {$last[0]}");
        }

        $content = ob_get_clean();
        if (!isset($this->hasChild[$name])) {
            $content = $this->_replace($content);
        }

        $pre = count($this->stacks) - 1;
        if ($pre > -1 && $this->opens[$this->stacks[$pre][0]]) {
            $this->hasChild[$this->stacks[$pre][0]] = true;
        }

        switch ($last[1]) {
            case 'replace' : // 默认
                break;
            case 'append' : // 追加
                $content = $this->parent($name) . $content;
                break;
            case 'prepend' : // 前面增加
                $content .= $this->parent($name);
                break;
            case 'hide' : // 不存在就隐藏
                if (!isset($this->blocks[$name])) {
                    $content = '';
                }
                break;
            default :
                throw new BlockException($name, 'undefined action type');
        }

        $this->blocks[$this->placeholder($name)] = $content;

        // 输出占位符
        if (isset($last[2])) {
            echo $last[2];
        }
    }
217532
public function actionDelete ($name)
		{
			$class = $this->_modelClass;
			$object = $class::find()->where([ 'name' => $name ])->one();
			if ($object == null)
			{
				Console::printColor('Setting not found.', 'red');
				Yii::$app->end();
			}

			if ($this->confirm("Remove setting '" . $name . "'?"))
			{
				if ($object->delete())
					Console::printColor('Setting deleted.', 'green');
				else
					Console::printColor(current($object->getFirstErrors()), 'red');
			}
		}
545016
public function delete($name)
    {
        if ( ! $this->exists($name)) {
            return true;
        }

        unset($this->cookies[$name]);

        return $this->set($name, null, -1);
    }
550792
public function removeTick($name)
    {
        if (isset($this->ticks[$name])) {
            $this->ticks[$name]->setManager(null);
            unset($this->ticks[$name]);
        }
    }
312564
public function remove($name)
    {
        unset($this->treated[$name]);
        unset($this->services[$name]);
        unset($this->parameters[$name]);
    }
1192654
public function delete($name) {

        if ( array_key_exists($name, $this->data) ) {
            unset($this->data[$name]);
            return true;
        }

        return false;

    }
498363
protected function setTagItem(string $name): void
    {
        if (!empty($this->tag)) {
            foreach ($this->tag as $tag) {
                $tagName = $this->getTagKey($tag);
                $this->handler->sAdd($tagName, $name);
            }

            $this->tag = null;
        }
    }
1358455
public final function removeHeaders($name)
    {
        self::checkString($name);

        foreach ($this->_headers as $headerName => $headerValue) {

            if (strcasecmp($name, $headerName) === 0) {

                unset($this->_headers[$headerName]);
            }
        }
    }
400495
public function removeProperty($name)
    {
        if ($this->properties->containsKey($name)) {
            $this->properties->remove($name);
        }
    }
19209
public function deleteByKey($name) : void
    {
        if(!$this->keyExists($name)) {
            return;
        }

        parent::deleteByKey($name);
        unset($_SESSION[$name]);
    }
1234606
public function delete(string $name): void
    {
        !$this->all && $this->inputs();

        Arrays::delete($this->input, $name);
        $this->cache = [];
    }
269527
public function addColumn(string $name): void
    {
        if (!in_array($name, $this->columns, true)) {
            $this->columns[] = $name;
        }
    }
211062
public static function RemovePost ($name) {
		if (static::HasClassVar('_post', $name)) {
			static::RemoveClassVar('_post', $name);
		}
		if (Arrays::ExistsLowest($_POST, $name)) {
			Arrays::RemoveLowest($_POST, $name);
		}
	}
596450
public function setName(string $name)
    {
        $old = $this->getPath();
        $new = $this->getLocation().DIRECTORY_SEPARATOR.$name;

        if(rename($old, $new)) {
            $this->_name = $name;
        }
    }
149525
protected function unsetReadonlyProperty(string $name): void
    {
        if ($this->issetReadonlyProperty($name)) {
            unset($this->readonlyValues[$name]);
        }
    }