code/DesignModule.php
public function getDataSource()
    {
        foreach (self::$data_file_names as $name) {
            $path = $this->getPath() . '/' . $name;
            if (file_exists($path)) {
                return new DataSource($path);
            }
        }

        return false;
    }
public function getDataSource()
    {
        foreach (self::$data_file_names as $name) {
            $path = $this->getPath() . '/' . $name;
            if (file_exists($path)) {
                return new DataSource($path);
            }
        }

        return false;
    }
public function getDataSource ( ) { foreach ( self :: $ data_file_names as $ name ) { $ path = $ this -> getPath ( ) . '/' . $ name ; if ( file_exists ( $ path ) ) { return new DataSource ( $ path ) ; } } return false ; }
Gets the data source as an object
@return bool|DataSource
Gets the data source as an object