public function getContactIds()
    {
        $list = array();
        foreach ($this->contacts as $contact) {
            $list[$contact->name] = $contact->id;
        }

        return $list;
    }
public function getContactIds()
    {
        $list = array();
        foreach ($this->contacts as $contact) {
            $list[$contact->name] = $contact->id;
        }

        return $list;
    }
public function getContactIds ( ) { $ list = array ( ) ; foreach ( $ this -> contacts as $ contact ) { $ list [ $ contact -> name ] = $ contact -> id ; } return $ list ; }
Gets contact id.

@return int[=>]
Gets contact id .