当前位置: 首页>>代码示例>>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;未经允许,请勿转载。