Example #1
0
 /**
  * Stars the given item.
  *
  * @param int $id  the item id
  */
 public function star($id)
 {
     $item = model_cache::get("item", $id);
     $msg = t("Starred <b>%title</b> item", array("title" => html::purify($item->title)));
     $this->_check_star_permissions($item);
     star::star($item);
     message::success($msg);
     json::reply(array("result" => "success", "reload" => 1));
 }
Example #2
0
	/**
	 * I use this wrapper for default dot types,
	 * it just makes the code easier to read.
	 */
	public function __construct($colour, $size)
	{
		parent::star();
		$this->colour($colour)->size($size);
	}
Example #3
0
 /**
  * I use this wrapper for default dot types,
  * it just makes the code easier to read.
  */
 function s_star($colour, $size)
 {
     parent::star();
     $this->colour($colour)->size($size);
 }