src/OpenTok/Layout.php
public static function createCustom($options)
    {
        // unpack optional arguments (merging with default values) into named variables
        // NOTE: the default value of stylesheet=null will not pass validation, this essentially
        //       means that stylesheet is not optional. its still purposely left as part of the
        //       $options argument so that it can become truly optional in the future.
        $defaults = array('stylesheet' => null);
        $options = array_merge($defaults, array_intersect_key($options, $defaults));
        list($stylesheet) = array_values($options);

        // validate arguments
        Validators::validateLayoutStylesheet($stylesheet);

        return new Layout('custom', $stylesheet);
    }
public static function createCustom($options)
    {
        // unpack optional arguments (merging with default values) into named variables
        // NOTE: the default value of stylesheet=null will not pass validation, this essentially
        //       means that stylesheet is not optional. its still purposely left as part of the
        //       $options argument so that it can become truly optional in the future.
        $defaults = array('stylesheet' => null);
        $options = array_merge($defaults, array_intersect_key($options, $defaults));
        list($stylesheet) = array_values($options);

        // validate arguments
        Validators::validateLayoutStylesheet($stylesheet);

        return new Layout('custom', $stylesheet);
    }
public static function createCustom ( $ options ) { // unpack optional arguments (merging with default values) into named variables // NOTE: the default value of stylesheet=null will not pass validation, this essentially //       means that stylesheet is not optional. its still purposely left as part of the //       $options argument so that it can become truly optional in the future. $ defaults = array ( 'stylesheet' => null ) ; $ options = array_merge ( $ defaults , array_intersect_key ( $ options , $ defaults ) ) ; list ( $ stylesheet ) = array_values ( $ options ) ; // validate arguments Validators :: validateLayoutStylesheet ( $ stylesheet ) ; return new Layout ( 'custom' , $ stylesheet ) ; }
Returns a Layout object defining a custom layout type.

@param array $options An array containing one property: <code>$stylesheet<code>,
which is a string containing the stylesheet to be used for the layout.
Returns a Layout object defining a custom layout type .