-
Notifications
You must be signed in to change notification settings - Fork 0
/
helpers.php
35 lines (34 loc) · 850 Bytes
/
helpers.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* Part of the Crud bundle for Laravel.
*
* NOTICE OF LICENSE
*
* Licensed under the 3-clause BSD License.
*
* This source file is subject to the 3-clause BSD License that is
* bundled with this package in the LICENSE file. It is also available at
* the following URL: http://www.opensource.org/licenses/BSD-3-Clause
*
* @package Sentry
* @version 1.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011 - 2012, Cartalyst LLC
* @link http://cartalyst.com
*/
if ( ! function_exists('get_object_public_vars'))
{
/**
* Gets all the public vars for an object.
* Use this if you need to get all the
* public vars of $this inside an object.
*
* @param object $obj
* @return array
*/
function get_object_public_vars($obj)
{
return get_object_vars($obj);
}
}