public function getClient($id)
    {
        $response = $this->get('/en/client/edit/id/' . $id);

        $content = trim($this->getBetween((string)$response->getBody(), '<table class="wide">', "</table>"));

        $client = new Client(array(
            'id' => $id,
            'email' => $this->getBetween($content, '<input type="text" name="email" id="email" value="', '">'),
            'first_name' => $this->getBetween($content, '<input type="text" name="first_name" id="first_name" value="', '">'),
            'last_name' => $this->getBetween($content, '<input type="text" name="last_name" id="last_name" value="', '">'),
            'company' => $this->getBetween($content, '<input type="text" name="company" id="company" value="', '">'),
            'address_1' => $this->getBetween($content, '<input type="text" name="address_1" id="address_1" value="', '">'),
            'address_2' => $this->getBetween($content, '<input type="text" name="address_2" id="address_2" value="', '">'),
            'country' => $this->getBetweenReverse($content, '<option value="', '" selected="selected">'),
            'city' => $this->getBetween($content, '<input type="text" name="city" id="city" value="', '">'),
            'state' => $this->getBetween($content, '<input type="text" name="state" id="state" value="', '">'),
            'zip' => $this->getBetween($content, '<input type="text" name="zip" id="zip" value="', '">'),
            'phone_cc' => $this->getBetween($content, '<input type="text" name="phone_cc" id="phone_cc" value="', '">'),
            'phone' => $this->getBetween($content, '<input type="text" name="phone" id="phone" value="', '">'),
        ));

        return $client;
    }
public function getClient($id)
    {
        $response = $this->get('/en/client/edit/id/' . $id);

        $content = trim($this->getBetween((string)$response->getBody(), '<table class="wide">', "</table>"));

        $client = new Client(array(
            'id' => $id,
            'email' => $this->getBetween($content, '<input type="text" name="email" id="email" value="', '">'),
            'first_name' => $this->getBetween($content, '<input type="text" name="first_name" id="first_name" value="', '">'),
            'last_name' => $this->getBetween($content, '<input type="text" name="last_name" id="last_name" value="', '">'),
            'company' => $this->getBetween($content, '<input type="text" name="company" id="company" value="', '">'),
            'address_1' => $this->getBetween($content, '<input type="text" name="address_1" id="address_1" value="', '">'),
            'address_2' => $this->getBetween($content, '<input type="text" name="address_2" id="address_2" value="', '">'),
            'country' => $this->getBetweenReverse($content, '<option value="', '" selected="selected">'),
            'city' => $this->getBetween($content, '<input type="text" name="city" id="city" value="', '">'),
            'state' => $this->getBetween($content, '<input type="text" name="state" id="state" value="', '">'),
            'zip' => $this->getBetween($content, '<input type="text" name="zip" id="zip" value="', '">'),
            'phone_cc' => $this->getBetween($content, '<input type="text" name="phone_cc" id="phone_cc" value="', '">'),
            'phone' => $this->getBetween($content, '<input type="text" name="phone" id="phone" value="', '">'),
        ));

        return $client;
    }
public function getClient ( $ id ) { $ response = $ this -> get ( '/en/client/edit/id/' . $ id ) ; $ content = trim ( $ this -> getBetween ( ( string ) $ response -> getBody ( ) , '<table class="wide">' , "</table>" ) ) ; $ client = new Client ( array ( 'id' => $ id , 'email' => $ this -> getBetween ( $ content , '<input type="text" name="email" id="email" value="' , '">' ) , 'first_name' => $ this -> getBetween ( $ content , '<input type="text" name="first_name" id="first_name" value="' , '">' ) , 'last_name' => $ this -> getBetween ( $ content , '<input type="text" name="last_name" id="last_name" value="' , '">' ) , 'company' => $ this -> getBetween ( $ content , '<input type="text" name="company" id="company" value="' , '">' ) , 'address_1' => $ this -> getBetween ( $ content , '<input type="text" name="address_1" id="address_1" value="' , '">' ) , 'address_2' => $ this -> getBetween ( $ content , '<input type="text" name="address_2" id="address_2" value="' , '">' ) , 'country' => $ this -> getBetweenReverse ( $ content , '<option value="' , '" selected="selected">' ) , 'city' => $ this -> getBetween ( $ content , '<input type="text" name="city" id="city" value="' , '">' ) , 'state' => $ this -> getBetween ( $ content , '<input type="text" name="state" id="state" value="' , '">' ) , 'zip' => $ this -> getBetween ( $ content , '<input type="text" name="zip" id="zip" value="' , '">' ) , 'phone_cc' => $ this -> getBetween ( $ content , '<input type="text" name="phone_cc" id="phone_cc" value="' , '">' ) , 'phone' => $ this -> getBetween ( $ content , '<input type="text" name="phone" id="phone" value="' , '">' ) , ) ) ; return $ client ; }
Get a client from YouHosting

@param $id
@return Client
Get a client from YouHosting