Helpers

enygma edited this page Oct 14, 2010 · 2 revisions

###HelperFindHtml Helper to assist in finding HTML markup in a remote page

<?php
HelperFindHtml::execute($htmlMarkup);
$foundItems=HelperFindHtml::find('a',array('id'=>'my_link'));
?>

###HelperForm Helper to work with remote forms

<?php
HelperForm::execute($dataForFormFields);
HelperForm::parseHtml($htmlMarkup);
$boolean=HelperForm::isFormField('field_name');
?>

###HelperSession Works with sessions for the current connection

<?php
HelperSession::execute($httpHeaders);
HelperSession::getCurrentSession();
HelperSession::endSession();
?>