本文整理汇总了PHP中Tags::update方法的典型用法代码示例。如果您正苦于以下问题:PHP Tags::update方法的具体用法?PHP Tags::update怎么用?PHP Tags::update使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tags
的用法示例。
在下文中一共展示了Tags::update方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: editAction
public function editAction(Tags $tag)
{
if ($this->request->isPost() && $tag->update($this->request->getPost())) {
return $this->success();
}
$this->view->mytag = $tag;
$this->view->form = myForm::buildFormFromModel($tag);
}
示例2: editAction
public function editAction(Tags $tag)
{
if ($this->request->isPost()) {
$data = $this->request->getPost();
$tag->update($data);
$this->redirectByRoute(['for' => 'tags.show', 'tag' => $tag->id]);
}
$this->view->myTag = $tag;
$this->view->form = $this->buildFormFromModel($tag);
}
示例3: ossim_valid
ossim_valid($bold, OSS_DIGIT, OSS_NULLABLE, 'illegal:' . _("bold"));
if (ossim_error()) {
die(ossim_error());
}
if (GET('mode') == "insert") {
if ($name == "") {
$msg = _("You must type a name for the tab.");
} else {
$id = Tags::insert($conn, $name, $bgcolor, $fgcolor, $italic, $bold);
$msg = _("Tag successfully created.");
}
} elseif (GET('mode') == "update" && $id != "") {
if ($name == "") {
$msg = _("You must type a name for the tab.");
} else {
Tags::update($conn, $id, $name, $bgcolor, $fgcolor, $italic, $bold);
$msg = _("Tag successfully saved.");
}
$id = "";
}
if (GET('delete') != "") {
Tags::delete($conn, $delete);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title> <?php
echo _("Control Panel");
?>
</title>
示例4: onChangeTag
function onChangeTag()
{
if (!isset($_SESSION['CATS']) || empty($_SESSION['CATS'])) {
echo 'CATS has lost your session data!';
return;
}
$tags = new Tags($this->_siteID);
//$tags->update($_POST['tag_id'], $_POST['title'], $_POST['description']);
$tags->update($_POST['tag_id'], $_POST['tag_title'], "-");
echo $_POST['tag_title'];
return;
}
示例5: update
/**
* Update the specified resource in storage.
*
* @param int $id
* @return Response
*/
public function update(Tags $tags, TagsRequest $request)
{
$tags->update($request->input());
return redirect()->route('admin.advertisement.index');
}
示例6: createtags
public function createtags()
{
try {
$tags = new Tags($this->db, $this->entryid);
$tags->update($this->tags);
$tags->save(false);
return true;
} catch (Exception $e) {
throw new ImageException('application error while setting tags', true);
}
}