/** * 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')); }
/** * 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')); }