public static function getAllContractsSIDsByUserSID($user_sid) { if ($user_sid == 0) { return false; } $contractsInfo = SJB_ContractSQL::selectInfoByUserSID($user_sid); $result = array(); foreach ($contractsInfo as $contractInfo) { $result[] = $contractInfo['id']; } return $result; }