public static function inTheme($theme)
    {
        if (is_string($theme)) {
            $theme = Theme::load($theme);
        }

        return static::on($theme->getDirName());
    }
public static function inTheme($theme)
    {
        if (is_string($theme)) {
            $theme = Theme::load($theme);
        }

        return static::on($theme->getDirName());
    }
public static function inTheme ( $ theme ) { if ( is_string ( $ theme ) ) { $ theme = Theme :: load ( $ theme ) ; } return static :: on ( $ theme -> getDirName ( ) ) ; }
Prepares the theme datasource for the model.
@param \Cms\Classes\Theme $theme Specifies a parent theme.
@return $this
Prepares the theme datasource for the model .