Exemplo n.º 1
0
 /**
  * Produces expression which calculates full URL of image
  * 
  * @param Model $m
  * @param DSQL $q
  *
  * @return DSQL
  */
 function getURLExpr($m, $q)
 {
     return $q->concat(@$m->api->pm->base_path, $m->getElement('dirname'), "/", $m->getElement('filename'));
 }
Exemplo n.º 2
0
 /**
  * Produces expression which calculates full URL of image
  * 
  * @param Model $m
  * @param DSQL $q
  *
  * @return DSQL
  */
 function getURLExpr($m, $q)
 {
     return $q->concat(@$m->api->pm->base_path, "websites", "/", $m->app->current_website_name, "/", $m->getElement('dirname'), "/", $m->getElement('filename'));
 }