Reformatted sql to use heredocs
This commit is contained in:
parent
f2b07e4a83
commit
7b1b271a2c
|
@ -335,11 +335,14 @@ class Application_Model_User
|
||||||
|
|
||||||
public static function getUserData($id)
|
public static function getUserData($id)
|
||||||
{
|
{
|
||||||
$sql = "SELECT login, first_name, last_name, type, id, email, cell_phone, skype_contact, jabber_contact"
|
$sql = <<<SQL
|
||||||
." FROM cc_subjs"
|
SELECT login, first_name, last_name, type, id, email, cell_phone, skype_contact,
|
||||||
." WHERE id = :id";
|
jabber_contact
|
||||||
|
FROM cc_subjs
|
||||||
return Application_Common_Database::prepareAndExecute($sql, array(":id" => $id), 'single');
|
WHERE id = :id
|
||||||
|
SQL;
|
||||||
|
return Application_Common_Database::prepareAndExecute($sql, array(
|
||||||
|
":id" => $id), 'single');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getCurrentUser()
|
public static function getCurrentUser()
|
||||||
|
|
Loading…
Reference in New Issue