public function createRoom($name, $owner_user_id = null)
    {
        $i = 1;
        $room_name = $name;

        $owner_user_id = $owner_user_id ?: $this->config->get(
            'hipsupport::config.owner_user_id'
        );

        // Make sure that a room doesn't already exist with this name.
        // If one does exist, add a number to the end of the name.
        while ($this->hipchat->room_exists($room_name)) {
            $room_name = $name . ' ' . $i++;
        }

        // Create room.
        $room = $this->hipchat->create_room(
            $room_name,
            $owner_user_id,
            null,
            null,
            true
        );

        return $room->room;
    }
public function createRoom($name, $owner_user_id = null)
    {
        $i = 1;
        $room_name = $name;

        $owner_user_id = $owner_user_id ?: $this->config->get(
            'hipsupport::config.owner_user_id'
        );

        // Make sure that a room doesn't already exist with this name.
        // If one does exist, add a number to the end of the name.
        while ($this->hipchat->room_exists($room_name)) {
            $room_name = $name . ' ' . $i++;
        }

        // Create room.
        $room = $this->hipchat->create_room(
            $room_name,
            $owner_user_id,
            null,
            null,
            true
        );

        return $room->room;
    }
public function createRoom ( $ name , $ owner_user_id = null ) { $ i = 1 ; $ room_name = $ name ; $ owner_user_id = $ owner_user_id ? : $ this -> config -> get ( 'hipsupport::config.owner_user_id' ) ; // Make sure that a room doesn't already exist with this name. // If one does exist, add a number to the end of the name. while ( $ this -> hipchat -> room_exists ( $ room_name ) ) { $ room_name = $ name . ' ' . $ i ++ ; } // Create room. $ room = $ this -> hipchat -> create_room ( $ room_name , $ owner_user_id , null , null , true ) ; return $ room -> room ; }
Create a public new room with guest access on.

@param string $name
@param integer $owner_user_id
@return stdClass
Create a public new room with guest access on .