コード例 #1
0
ファイル: Phone.php プロジェクト: bhirsch/voipdrupal-4.7-1.0
 /**
  * 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);
 }