Mr. Goodie2Shoes
Well-known member
Hello,
Can anyone tell me how do these constants and fetch options work? For example here's XenForo_Model_User:
what exactly do these numbers mean and how do they work?
and the function
when exactly does the fetchOptions is added?
Can anyone tell me how do these constants and fetch options work? For example here's XenForo_Model_User:
PHP:
const FETCH_USER_PROFILE = 0x01;
const FETCH_USER_OPTION = 0x02;
const FETCH_USER_PRIVACY = 0x04;
const FETCH_USER_PERMISSIONS = 0x08;
const FETCH_LAST_ACTIVITY = 0x10;
and the function
PHP:
function getUserById($userId, array $fetchOptions = array())