PHP 클래스 luya\helpers\ObjectHelper

저자: Basil Suter ([email protected])
파일 보기 프로젝트 열기: zephir/luya 1 사용 예제들

공개 메소드들

메소드 설명
callMethodSanitizeArguments ( object $object, string $method, array $argumentsList = [] ) : object Call a method and ensure arguments.
toArray ( object $object ) Convert Object to Array

메소드 상세

callMethodSanitizeArguments() 공개 정적인 메소드

Call a class method with arguments and verify the arguments if they are in the list of method arguments or not. php ObjectHelper::callMethodSanitizeArguments(new MyClass(), 'methodToCall', ['paramName' => 'paramValue']);
public static callMethodSanitizeArguments ( object $object, string $method, array $argumentsList = [] ) : object
$object object The class object where the method must be found.
$method string The class method to call inside the object.
$argumentsList array A massiv assigned list of array items, where the key is bind to the method argument and the value to be passed in the method on call.
리턴 object

toArray() 공개 정적인 메소드

Convert Object to Array
부터: 1.0.0-beta7
public static toArray ( object $object )
$object object