Example #1
0
 public static final function _GetAssociationsForOwner(DBConnect &$db, $ownerTable, $ownerID){
     logger_FuncCall(__FILE__, __LINE__, __FUNCTION__);
     if (!is_string($ownerTable)){ throw new InvalidParamException(1, _T::STRING); }
     if (!is_numeric($ownerID)){ throw new InvalidParamException(3, _T::NUMBER); }
     $ownerTable = $db->escapeString($ownerTable);
     return $db->SelectAllOfOneField(
             DTASSOCIATE_DTID,
             DTASSOCIATE,
             DTASSOCIATE_OWNERTABLE."='$ownerTable',".
             DTASSOCIATE_OWNERID."=$ownerID");
 }