Skip to content

Commit c3a26e2

Browse files
authored
Merge pull request #176 from jatitoam/locators
[imp] Added a locator getter
2 parents ed91ce2 + c25380b commit c3a26e2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/JoomlaBrowser.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,24 @@ protected function instantiateLocator()
9999
$this->locator = new $class;
100100
}
101101

102+
/**
103+
* Locator getter
104+
*
105+
* @param string $path Locator to get
106+
*
107+
* @return mixed|false
108+
* @since 3.8.11
109+
*/
110+
public function getLocatorPath($path)
111+
{
112+
if (!isset($this->locator->$path))
113+
{
114+
return false;
115+
}
116+
117+
return $this->locator->$path;
118+
}
119+
102120
/**
103121
* Function to Do Admin Login In Joomla!
104122
*

0 commit comments

Comments
 (0)