Lines Matching refs:id
91 foreach ($fa_providers as $id => $data) {
92 $provider = fa_provider::create($id, $data);
93 $this->providers[$id] = $provider;
95 if (!in_array($id, $this->order_large) && !in_array($id, $this->order_small)) {
96 array_push($this->order_small, $id);
107 * @param string $id provider identifier
113 public function addCustom($id, $name, $url, $large, $small) { argument
114 if (array_key_exists($id, $this->providers)) return 0;
115 $provider = fa_provider::createCustom($id, $name, $url, $large, $small);
116 $this->providers[$id] = $provider;
117 array_push($this->order_small, $id);
118 return $this->providers[$id];
151 * @param string $id provider identifier
154 public function get($id) { argument
155 return $this->providers[$id];
198 * @param string $id provider identifier
202 public function getImageXHTML($id, $class='') { argument
203 $size = in_array($id, $this->order_large) ? PROV_LARGE : PROV_SMALL;
204 return $this->providers[$id]->getImageXHTML($size, $class);
210 * @param string $id provider identifier
214 public function isFirst($id) { argument
215 $src =& $this->_getOrderFor($id);
218 return $first == $id;
224 * @param string $id provider identifier
228 public function isLast($id) { argument
229 $src =& $this->_getOrderFor($id);
232 return $last == $id;
240 public function moveDown($id) { argument
241 $src =& $this->_getOrderFor($id);
245 $index = array_search($id, $src);
261 public function moveUp($id) { argument
262 $src =& $this->_getOrderFor($id);
266 $index = array_search($id, $src);
280 * @param string $id provider identifier
282 public function removeCustom($id) { argument
283 if (!array_key_exists($id, $this->providers)) return false;
284 if (!$this->providers[$id]->isRemovable()) return false;
286 unset($this->providers[$id]);
289 $ord =& $this->_getOrderFor($id);
291 $index = array_search($id, $ord);
318 foreach ($this->providers as $id => $provider) {
336 * @param string $id provider identifier
339 public function toggleSize($id) { argument
340 if (in_array($id, $this->order_large)) {
341 $index = array_search($id, $this->order_large);
343 array_push($this->order_small, $id);
346 if (in_array($id, $this->order_small)) {
347 $index = array_search($id, $this->order_small);
349 array_push($this->order_large, $id);
363 * @param string $id provider identifier
366 private function &_getOrderFor($id) { argument
367 if (in_array($id, $this->order_small)) {
370 if (in_array($id, $this->order_large)) {