Extension Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to write a PHPv4 extension and I am needing some assistance.  I
wish to have a function exported from my extension return a value which
consists of a set of properties and functions much like so:

  // Gets user record from database store.
  $MyUser = GetUser();
  echo "Your name is: ".$MyUser->name;
  // Update name field to something else
  $MyUser->name = "We've changed your name";
  // Invoke an update function to save the data to
  // database.
  $MyUser->update();

Could someone please illustrate how my extension should create/register this
$MyUser return_value and how I would go about coding the update() function
on that object?

Thanks in advance!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux