本文整理汇总了PHP中FACTFinder\Loader::isInstanceOf方法的典型用法代码示例。如果您正苦于以下问题:PHP Loader::isInstanceOf方法的具体用法?PHP Loader::isInstanceOf怎么用?PHP Loader::isInstanceOf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FACTFinder\Loader
的用法示例。
在下文中一共展示了Loader::isInstanceOf方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: hasFileNameChanged
private function hasFileNameChanged($id, $newFileName)
{
$connectionData = $this->connectionData[$id];
if (FF::isInstanceOf($connectionData->getResponse(), 'Core\\Server\\NullResponse')) {
return true;
}
return $newFileName != $connectionData->getPreviousUrl();
}
示例2: __construct
/**
* Optionally takes a Parameters object to initialize the query parameters.
* @param \FACTFinder\Util\Parameters $parameters
* @return type
*/
public function __construct($parameters = null)
{
if (FF::isInstanceOf($parameters, 'Util\\Parameters')) {
$this->parameters = $parameters;
} else {
$this->parameters = FF::getInstance('Util\\Parameters');
}
$this->httpHeaderFields = FF::getInstance('Util\\Parameters');
$this->action = '';
$this->setNullResponse();
}
示例3: convert_recursive
/**
* Converts data from $inCharset to $outCharset.
* @param mixed $data If a string is given, it's encoding will be converted.
* If an associative array is given, keys and values will be
* converted recursively. All other data types will be returned
* unchanged.
* @return mixed
*/
protected function convert_recursive($inCharset, $outCharset, $data)
{
if (FF::isInstanceOf($data, 'Util\\Parameters')) {
$result = FF::getInstance('Util\\Parameters', $this->convert($inCharset, $outCharset, $data->getArray()));
} else {
if (is_array($data)) {
$result = array();
foreach ($data as $k => $v) {
$k = $this->convert_recursive($inCharset, $outCharset, $k);
$result[$k] = $this->convert_recursive($inCharset, $outCharset, $v);
}
} else {
if (is_string($data)) {
$result = $this->convertString($inCharset, $outCharset, $data);
} else {
$result = $data;
}
}
}
return $result;
}
示例4: hasUrlChanged
private function hasUrlChanged($id)
{
$connectionData = $this->connectionData[$id];
if (FF::isInstanceOf($connectionData->getResponse(), 'Core\\Server\\NullResponse')) {
return true;
}
$url = $this->urlBuilder->getNonAuthenticationUrl($connectionData->getAction(), $this->prepareParameters($connectionData));
return $url != $connectionData->getPreviousUrl();
}