This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function param($param, $default = FALSE, $boolean = FALSE, $required = FALSE) | |
{ | |
$name = $param; | |
$param = $this->EE->TMPL->fetch_param($param); | |
if($required && !$param) show_error('You must define a "'.$name.'" parameter in the '.__CLASS__.' tag.'); | |
if($param === FALSE && $default !== FALSE) | |
{ | |
$param = $default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Overview | |
-------- | |
The idea here is to have a single "library" (in this case it's actually a driver) | |
that loads an API from _other_ add-ons. | |
For instance, say you wanted you application to interact with Google Maps for | |
ExpressionEngine, but you want to do it in a nice easy to use fashion without loading | |
a whole bunch of dependencies and reverse engineer someone's code. With an effort to | |
eliminate duplicate code and make life easier for all developers, we can now use |
NewerOlder