Lines Matching refs:label

47         foreach ($all as $label => $opts) {
49 $active = in_array($label, $current);
59 'label' => $label
65 …$result .= hsc((isset($this->lang_translation[$label])) ? $this->lang_translation[$label] : $labe…
83 foreach ($lables as &$label) {
84 $label = trim($label);
97 foreach ($labels as $label) {
98 if (!$this->labelExists($label)) continue;
99 $db->query('INSERT INTO labeled (id, label) VALUES (?,?)', $id, $label);
103 public function changeColor($label, $newColor) { argument
108 $db->query('UPDATE labels SET color=? WHERE name=?', $newColor, $label);
113 * @param string $label label to remove
116 public function removeLabel($label, $id) { argument
121 $db->query('DELETE FROM labeled WHERE id=? AND label=?', $id, $label);
140 * @param string $label
144 public function addLabel($label, $id) { argument
146 $labels[] = $label;
154 * @param string $label old label name
157 public function renameLabel($label, $newName) { argument
161 if (!$this->labelExists($label)) return;
163 $db->query('UPDATE labels set name=? WHERE name=?', $newName, $label);
164 $db->query('UPDATE labeled set label=? WHERE label=?', $newName, $label);
183 foreach ($labels as $label) {
184 $result[] = $label['label'];
191 * @param string $label label to check
194 public function labelExists($label) { argument
196 return isset($labels[$label]);
212 foreach ($labels as $label) {
213 $this->labels[$label['name']] = $label;
272 * @param string $label label to delete
274 public function deleteLabel($label) { argument
279 $db->query('DELETE FROM labels WHERE name=?', $label);
280 $db->query('DELETE FROM labeled WHERE label=?', $label);