本文整理汇总了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();
}
示例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();
}
示例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());
}
示例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();
}
示例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;
}
示例6:
/**
* コンストラクター
*
* @access public
*/
function Filter_HeaderMenu()
{
parent::Filter();
}
示例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);
}
示例8:
/**
* コンストラクター
*
* @access public
* @since 3.0.0
*/
function Filter_InjectSession()
{
parent::Filter();
}
示例9:
/**
* コンストラクター
*
* @access public
*/
function Filter_MobileView()
{
parent::Filter();
}
示例10:
/**
* コンストラクター
*
* @access public
* @since 3.1.0
*/
function Filter_SimpleView()
{
parent::Filter();
}
示例11:
/**
* コンストラクター
*
* @access public
* @since 3.0.0
*/
function Filter_Action()
{
parent::Filter();
}
示例12:
/**
* コンストラクター
*
* @access public
* @since 3.0.0
*/
function Filter_Convert()
{
parent::Filter();
}
示例13: GenericSequencerFilter
/**
* Constructor
*/
function GenericSequencerFilter()
{
parent::Filter();
}
示例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 . '(*)');
}
示例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);