11 if (!(
$u->hasField(
"first_name") &&
$u->hasField(
"last_name")))
13 throw new FakoliException(
"User object model does not support search by name");
20 $messages = Query::create(
ForumMessage,
"WHERE deleted=0 AND forum_id=:f AND author_id IN (SELECT $pk FROM $table WHERE concat(first_name, ' ', last_name) LIKE :t) ORDER BY date_posted DESC")
FakoliException is the base exception class for all Fakoli errors.
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
Provides the interface to the user model for the application.
if(!($u->hasField("first_name") && $u->hasField("last_name"))) $pk