API15:JBrowser/isRobot/ja
出典: Joomla! ドキュメンテーション
目次 |
Description
Determines if the browser is a robot or not.
Syntax
isRobot()
Returns
boolean True if browser is a known robot.
Defined in
libraries/joomla/environment/browser.php
Importing
jimport( 'joomla.environment.browser' );
Source Body
function isRobot() { foreach ($this->_robots as $robot) { if (strpos($this->_agent, $robot) !== false) { return true; } } return false; }
Examples
<CodeExamplesForm />
