*/
class CRM_Core_BAO_Phone extends CRM_Core_DAO_Phone {
- /*
+ /**
* Create phone object - note that the create function calls 'add' but
* has more business logic
*
- * @param array $params
- * Input parameters.
- */
- /**
* @param array $params
*
* @return object
*
* @return object
* CRM_Core_BAO_Phone object on success, null otherwise
- * @static
*/
public static function add(&$params) {
// Ensure mysql phone function exists
*
* @return array
* array of phone objects
- * @static
*/
public static function &getValues($entityBlock) {
$getValues = CRM_Core_BAO_Block::getValues('phone', $entityBlock);
*
* @return array
* the array of phone ids which are potential numbers
- * @static
*/
public static function allPhones($id, $updateBlankLocInfo = FALSE, $type = NULL, $filters = array()) {
if (!$id) {
);
$numbers = $values = array();
- $dao = CRM_Core_DAO::executeQuery($query, $params);
- $count = 1;
+ $dao = CRM_Core_DAO::executeQuery($query, $params);
+ $count = 1;
while ($dao->fetch()) {
$values = array(
'locationType' => $dao->locationType,
*
* @param array $entityElements
* The array containing entity_id and.
- * entity_table name
+ * entity_table name
*
* @param null $type
*
* @return array
* the array of phone ids which are potential numbers
- * @static
*/
public static function allEntityPhones($entityElements, $type = NULL) {
if (empty($entityElements)) {
* @param $optionId
* Value of option to be deleted.
*
- * return void
- * @static
+ * @return void
*/
public static function setOptionToNull($optionId) {
if (!$optionId) {