Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
class foo{
function bar(){
return "hello world";
}
}
$mylongobjectname = new foo;
//here comes the lazy bit
$a =& $mylongobjectname;
echo $a->bar();
$objRecordSet->selectionclause = BuildSelectionClause();
$objRecordSet->joinclause = BuildJoinClause();
$objRecordSet->whereclause = SetUpWhereClause();
$objRecordSet->orderbyclause = SetUpOrderClause();
$objRecordSet->limitclause = SetupLimitClause();
$objRecordSet->Requery();
<?php
/* example usage
* $obj = new query ($query);
* $obj->build();
* $obj_reQuery();
*
*/
class query{
public function __construct($query){
$this->originalQuery = $query;
}
public function build(){
$this->buildSelectionsClause();
$this->buildJoinClause();
$this->setUpWhereClause();
$this->setUpOrderClause();
$this->setUpLimitClause();
}
public function reQuery(){
$this->assembleQuery();
//do something with $this->query
}
private function assembleQuery(){
$this->query = $this->selectClause . $this->joinClause . $this->whereClause . $this->orderClause. $this->limitClause;
}
private function buildSelectionClause(){
//do stuff
$this->selectClause = $return;
}
private function buildJoinClause(){
//do stuff
$this->joinClause = $return;
}
private function setUpWhereClause(){
//do stuff
$this->whereClause = $return;
}
private function setUpOrderClause(){
//do stuff
$this->orderClause = $return;
}
private function setUpLimitClause(){
//do stuff
$this->limitClause = $return;
}
}
?>