Back to User class

Method __sleep

public array
__sleep
()
Method to allow serialize the object with minimal properties.
Returns
  • array The names of the properties to include in serialization.
Since
  • 3.6.0
Class: User
Project: Joomla

Method __sleep - Source code

/**
 * Method to allow serialize the object with minimal properties.
 *
 * @return  array  The names of the properties to include in serialization.
 *
 * @since   3.6.0
 */
public function __sleep()
{
    return array('id');
}