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
/** | |
* Class form | |
* just a container | |
*/ | |
class form implements IteratorAggregate | |
{ | |
private $_formAction; | |
private $_formMethod; | |
private $_inputs; |
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
/** | |
* парсит формы в html. Выбирает input[type=text], input[type=hidden] и textarea | |
* | |
* @return массив объектов form() | |
*/ | |
public function extract() | |
{ | |
$dom = new DOMDocument(); | |
$dom->loadXML(self::$saw->get('form')->toXml()); | |
$xpath = new DOMXPath($dom); |
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
# all php files :: disallow direct access of file | |
# between <?php and ?> | |
defined('_JEXEC') or die; | |
# index.php :: define variable with application | |
# between <?php and ?> | |
$app = JFactory::getApplication(); | |
# index.php :: define variable with document | |
# between <?php and ?> |
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
// Atom | |
header('Content-type: application/atom+xml'); | |
// CSS | |
header('Content-type: text/css'); | |
// Javascript | |
header('Content-type: text/javascript'); | |
//JPEG Image | |
header('Content-type: image/jpeg'); | |
//JSON | |
header('Content-type: application/json'); |
NewerOlder