/** * Check if there is data to create the object * * @param array $params (reference) an assoc array of name/value pairs * @param int $locationId * @param int $phoneId * @param array $ids (reference) the array that holds all the db ids * * @return boolean * @access public * @static */ function dataExists(&$params, $locationId, $phoneId, &$ids) { if (CRM_Utils_Array::value($phoneId, $ids['location'][$locationId]['phone'])) { return true; } return CRM_Core_BAO_Block::dataExists('phone', array('phone'), $params, $locationId, $phoneId); }