PHP Classes

File: examples/websocket/app/controllers/update.php

Recommend this page to a friend!
  Packages of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/websocket/app/controllers/update.php   Download  
File: examples/websocket/app/controllers/update.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 10 years ago
Size: 473 bytes
 

Contents

Class file image Download
<?php

class update extends A_Controller_Action {

    public function __construct($locator=null)
    {
        parent::__construct($locator);
    }
    
    public function user($locator=null)
    {
        $request = $locator->get('Request')->getData();

        $client = $request->getSession()->get('client');
        
        $client->deserialize($request->getMessage()->data);
        
        $request->reply(array(
                'command' => 'update:user',
                'data' => $client->serialize
            ),
            A_Socket_Message::OTHERS
        );
    }

}