Location: PHPKode > scripts > Meta tags fetcher > meta-tags-fetcher/mtfetcher_Transport.php
<?php
  /**
   * Abstract class of web page transport
   *
   * Use this class under GPL license
   * @author   Eugene Panin <hide@address.com>, Lubertsy, Russia, 2004
   * @home http://www.tortuga.pp.ru/index.php/processor/index/lang/en
   * @package  mtfetcher
   * @depends PEAR (http://pear.php.net)
   * @version  1.0
   */
class mtfetcher_Transport extends mtfetcher_Class {

  /**
   * Configuration hash. Depends on concrete transport
   *
   * @var      array
   * @access   protected
   */
  var $_conf;

  //--------------------------------

  /**
   * Object constructor
   *
   * @param array $conf Configuration hash.
   * @return object mtfetcher_Transport
   * @access public
   */
  function mtfetcher_Transport($conf) {
    parent::mtfetcher_Class();
    $this->_conf = $conf;
  } // mtfetcher_Transport

  /**
   * Return an instance of concrete (indicated) transport
   *
   * @param string $name Name of concrete transport
   * @param array $conf Configuration hash of concrete transport
   * @return object mtfetcher_Transport Concrete transport
   * @access public
   */
  function factory($name,&$conf) {
    $cn = "mtfetcher_Transport_".$name;
    $err = parent::_includeFile($cn);
    if (PEAR::isError($err)) return $err;
    $obj = new $cn($conf);
    return $obj;
  } // factory

} // class
?>
Return current item: Meta tags fetcher