コード例 #1
0
ファイル: jquery.php プロジェクト: jpalala/startupjobs
/**
 * The starting point of every application call. If you are only
 * using the framework you can rename this function to whatever you
 * like.
 *
 */
function jquery()
{
    return Jquery::i();
}
コード例 #2
0
ファイル: jquery.php プロジェクト: codingoneapp/codingone
 /**
  *按条件过滤 
  */
 function filter($par)
 {
     if ($this->isroot) {
         $temprootjq = new Jquery('<mqq>' . $this->ohtml() . '</mqq>');
         $parsetemprootjq = $temprootjq->find($par)->get(0);
         if ($this->ohtml() == $parsetemprootjq->outertext) {
             return $this;
         }
         return new Jquery();
     }
     $newch = array();
     foreach ($this->doms as $temj) {
         $temprootjq = new Jquery('<mqq>' . $temj->outertext . '</mqq>');
         $parsetemprootjq = $temprootjq->find($par)->get(0);
         if ($temj->outertext == $parsetemprootjq->outertext) {
             $newch[] = $temj;
         }
     }
     return new Jquery($newch);
 }