You are here

function ARC_api::call_component in Taxonomy import/export via XML 6.2

Same name and namespace in other branches
  1. 5.2 arc/ARC_api.php \ARC_api::call_component()
  2. 5 arc/ARC_api.php \ARC_api::call_component()
  3. 6 arc/ARC_api.php \ARC_api::call_component()
24 calls to ARC_api::call_component()
ARC_api::add_data in arc/ARC_api.php
ARC_api::adjust_utf8_string in arc/ARC_api.php
ARC_api::consolidate_resources in arc/ARC_api.php
ARC_api::create_store in arc/ARC_api.php
ARC_api::decode_mysql_utf8_bugs in arc/ARC_api.php

... See full list

File

arc/ARC_api.php, line 162

Class

ARC_api

Code

function call_component($name, $mthd, $args = "") {
  $get_comp_mthd = "get_" . $name;
  if (method_exists($this, $get_comp_mthd) && ($comp =& $this
    ->{$get_comp_mthd}())) {
    if (method_exists($comp, $mthd)) {
      return $comp
        ->{$mthd}($args);
    }
    $this
      ->error("Method '" . $mthd . "' does not exist in component '" . $name . "'.");
  }
  return $this
    ->get_default_error();
}