當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Filter::Filter方法代碼示例

本文整理匯總了PHP中Filter::Filter方法的典型用法代碼示例。如果您正苦於以下問題:PHP Filter::Filter方法的具體用法?PHP Filter::Filter怎麽用?PHP Filter::Filter使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Filter的用法示例。


在下文中一共展示了Filter::Filter方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: NlmCitationSchemaFilter

 /**
  * Constructor
  *
  * @param $filterType integer whether this is a parser
  *  or a lookup filter
  * @param $supportedPublicationTypes array
  */
 function NlmCitationSchemaFilter($filterType = null, $supportedPublicationTypes = array())
 {
     // All NLM citation filters require XSL functionality
     // that is only present in PHP5.
     $this->setData('phpVersionMin', '5.0.0');
     $this->_supportedPublicationTypes = $supportedPublicationTypes;
     switch ($filterType) {
         case NLM_CITATION_FILTER_PARSE:
             $this->_supportedTransformation = array('primitive::string', 'metadata::lib.pkp.classes.metadata.nlm.NlmCitationSchema(CITATION)');
             break;
         case NLM_CITATION_FILTER_LOOKUP:
             $this->_supportedTransformation = array('metadata::lib.pkp.classes.metadata.nlm.NlmCitationSchema(CITATION)', 'metadata::lib.pkp.classes.metadata.nlm.NlmCitationSchema(CITATION)');
             break;
     }
     // Instantiate the "isOptional" setting
     // which is common to all NLM citation filters.
     // It contains the information whether a filter
     // will be used automatically within a given context
     // or whether the user will have to use it
     // explicitly (e.g. when parsing citations for
     // an article, conference paper or monograph).
     $isOptional = new BooleanFilterSetting('isOptional', 'metadata.filters.settings.isOptional.displayName', 'metadata.filters.settings.isOptional.validationMessage');
     $this->addSetting($isOptional);
     parent::Filter();
 }
開發者ID:JovanyJeff,項目名稱:hrp,代碼行數:32,代碼來源:NlmCitationSchemaFilter.inc.php

示例2: GenericFilter

 /**
  * Constructor
  *
  * @param $displayName string
  * @param $transformation array
  */
 function GenericFilter($displayName = null, $transformation = null)
 {
     $this->setDisplayName($displayName);
     if (!is_null($transformation)) {
         $this->_genericTransformationType =& $transformation;
     }
     parent::Filter();
 }
開發者ID:master3395,項目名稱:CBPPlatform,代碼行數:14,代碼來源:GenericFilter.inc.php

示例3: PersistableFilter

 /**
  * Constructor
  *
  * NB: Sub-classes of this class must not add additional
  * mandatory constructor arguments. Sub-classes that implement
  * additional optional constructor arguments must make these
  * also accessible via setters if they are required to fully
  * parameterize the transformation. Filter parameters must be
  * stored as data in the underlying DataObject.
  *
  * This is necessary as the FilterDAO does not support
  * constructor configuration. Filter parameters will be
  * configured via DataObject::setData(). Only parameters
  * that are available in the DataObject will be persisted.
  *
  * @param $filterGroup FilterGroup
  */
 function PersistableFilter(&$filterGroup)
 {
     // Check and set the filter group.
     assert(is_a($filterGroup, 'FilterGroup'));
     $this->_filterGroup =& $filterGroup;
     // Initialize the filter.
     $this->setParentFilterId(0);
     $this->setIsTemplate(false);
     parent::Filter($filterGroup->getInputType(), $filterGroup->getOutputType());
 }
開發者ID:yuricampos,項目名稱:ojs,代碼行數:27,代碼來源:PersistableFilter.inc.php

示例4: MetadataDataObjectAdapter

 /**
  * Constructor
  * @param $metadataSchemaName string a fully qualified class name
  * @param $dataObjectName string a fully qualified class name
  * @param $assocType integer
  */
 function MetadataDataObjectAdapter($metadataSchemaName, $dataObjectName, $assocType)
 {
     assert(is_string($metadataSchemaName) && is_string($dataObjectName) && is_integer($assocType));
     // Initialize the adapter
     $this->setDisplayName('Inject/Extract Metadata into/from a ' . $dataObjectName);
     $this->_metadataSchemaName = $metadataSchemaName;
     $this->_dataObjectName = $dataObjectName;
     $this->_assocType = $assocType;
     parent::Filter();
 }
開發者ID:ingmarschuster,項目名稱:MindResearchRepository,代碼行數:16,代碼來源:MetadataDataObjectAdapter.inc.php

示例5:

 /**
  * Constructor
  * @param $request PKPRequest
  */
 function NlmCitationSchemaCitationOutputFormatFilter(&$request)
 {
     parent::Filter();
     // Load additional translations
     $locale = AppLocale::getLocale();
     $basePath = $this->getBasePath();
     $localeFile = $basePath . DIRECTORY_SEPARATOR . 'locale' . DIRECTORY_SEPARATOR . $locale . DIRECTORY_SEPARATOR . 'locale.xml';
     AppLocale::registerLocaleFile($locale, $localeFile);
     // Save the request for later use
     $this->_request =& $request;
 }
開發者ID:sedici,項目名稱:ocs,代碼行數:15,代碼來源:NlmCitationSchemaCitationOutputFormatFilter.inc.php

示例6:

 /**
  * コンストラクター
  *
  * @access	public	
  */
 function Filter_HeaderMenu()
 {
     parent::Filter();
 }
開發者ID:RikaFujiwara,項目名稱:NetCommons2,代碼行數:9,代碼來源:Filter_HeaderMenu.class.php

示例7:

 /**
  * Constructor
  * @param $inputType string
  * @param $outputType string
  * @param $filterMode integer one of the PERSON_STRING_FILTER_* constants
  */
 function Nlm30PersonStringFilter($inputType, $outputType, $filterMode = PERSON_STRING_FILTER_SINGLE)
 {
     $this->_filterMode = $filterMode;
     parent::Filter($inputType, $outputType);
 }
開發者ID:EreminDm,項目名稱:water-cao,代碼行數:11,代碼來源:Nlm30PersonStringFilter.inc.php

示例8:

 /**
  * コンストラクター
  *
  * @access  public
  * @since   3.0.0
  */
 function Filter_InjectSession()
 {
     parent::Filter();
 }
開發者ID:RikaFujiwara,項目名稱:NetCommons2,代碼行數:10,代碼來源:Filter_InjectSession.class.php

示例9:

 /**
  * コンストラクター
  *
  * @access	public
  */
 function Filter_MobileView()
 {
     parent::Filter();
 }
開發者ID:RikaFujiwara,項目名稱:NetCommons2,代碼行數:9,代碼來源:Filter_MobileView.class.php

示例10:

 /**
  * コンストラクター
  *
  * @access  public
  * @since   3.1.0
  */
 function Filter_SimpleView()
 {
     parent::Filter();
 }
開發者ID:RikaFujiwara,項目名稱:NetCommons2,代碼行數:10,代碼來源:Filter_SimpleView.class.php

示例11:

 /**
  * コンストラクター
  *
  * @access  public
  * @since   3.0.0
  */
 function Filter_Action()
 {
     parent::Filter();
 }
開發者ID:RikaFujiwara,項目名稱:NetCommons2,代碼行數:10,代碼來源:Filter_Action.class.php

示例12:

 /**
  * コンストラクター
  *
  * @access  public
  * @since   3.0.0
  */
 function Filter_Convert()
 {
     parent::Filter();
 }
開發者ID:RikaFujiwara,項目名稱:NetCommons2,代碼行數:10,代碼來源:Filter_Convert.class.php

示例13: GenericSequencerFilter

 /**
  * Constructor
  */
 function GenericSequencerFilter()
 {
     parent::Filter();
 }
開發者ID:anorton,項目名稱:pkp-lib,代碼行數:7,代碼來源:GenericSequencerFilter.inc.php

示例14: CrosswalkFilter

 /**
  * Constructor
  * @param $fromSchema string fully qualified class name of supported input meta-data schema
  * @param $toSchema string fully qualified class name of supported output meta-data schema
  */
 function CrosswalkFilter($fromSchema, $toSchema)
 {
     parent::Filter('metadata::' . $fromSchema . '(*)', 'metadata::' . $toSchema . '(*)');
 }
開發者ID:ramonsodoma,項目名稱:pkp-lib,代碼行數:9,代碼來源:CrosswalkFilter.inc.php

示例15: Filter

$creditcard = 0;
$creditcard_t = '';
$creditcard_average = '';
$email = '';
$emails = '';
$tutorial = '';
//Objects
$filter = new Filter();
$lender = new Lender();
$business = new Business();
$merchant = new Merchant();
$emailobj = new Email();
if (isset($_GET['id_merchant'])) {
    $id_merchant = $_GET['id_merchant'];
    $merchant->Merchant($id_merchant);
    $filter->Filter($_GET['id_merchant']);
    $type_business = $filter->getBusiness();
    $foreclosure = $filter->getForeclosure();
    $landlord = $filter->getLandlord();
    $years = $filter->getYears();
    $months = $filter->getMonths();
    $total_months = $filter->getTotalMonths();
    $bankstatements = $filter->getBankStatements();
    $bank_average = $filter->getBankAverage();
    $nfs_average = $filter->getNSF();
    $creditcard = $filter->getCreditCard();
    $creditcard_t = $filter->getCreditCard_T();
    $creditcard_average = $filter->getCreditCardAverage();
    $email = $filter->getEmail();
    // obtenemos parametros
    $lender->setBusiness($type_business);
開發者ID:inEdgar,項目名稱:prestamo-para-negocio_proyecto,代碼行數:31,代碼來源:filter.php


注:本文中的Filter::Filter方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。