getFullTableName" in a function (scope issue?)"> getFullTableName" in a function (scope issue?)" />
//Get document info
$document_data = $modx->getPageInfo($id,1,'createdby,createdon,editedby,editedon');
//Get Creator details
$db_query = $modx->db->select('fullname,email,phone,mobilephone,photo,comment', $this->getFullTableName('user_attributes'), 'id = '.$document_data['createdby']);
$db_results = $modx->db->makeArray($db_query);
$creator_data = $db_results[0];
function get_user_data($user_id) {
$db_query = $modx->db->select('fullname,email,phone,mobilephone,photo,comment', $this->getFullTableName('user_attributes'), 'id = '.$user_id);
$db_results = $modx->db->makeArray($db_query);
return $db_results[0];//there should be only one result!
}
global $modx;

function get_user_data($user_id) {
global $modx;
$db_query = $modx->db->select('fullname,email,phone,mobilephone,photo,comment', $this->getFullTableName('user_attributes'), 'id = '.$user_id);
$db_results = $modx->db->makeArray($db_query);
return $db_results[0];//there should be only one!
}function get_user_data($user_id) {
global $modx;
$db_query = $modx->db->select('fullname,email,phone,mobilephone,photo,comment', $modx->getFullTableName('user_attributes'), 'id = '.$user_id);
$db_results = $modx->db->makeArray($db_query);
return $db_results[0];//there should be only one!
}
to figure out in any language, although it’s much worse in javascript.