1<?php
2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
3//
4// All Rights Reserved. See copyright.txt for details and a complete list of authors.
5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
6// $Id$
7
8require_once(__DIR__ . '/../../language/WriteFile.php');
9require_once(__DIR__ . '/../../language/File.php');
10
11/**
12 * Create WriteFile objects
13 */
14class Language_WriteFile_Factory
15{
16	/**
17	 * Create a WriteFile object
18	 *
19	 * @param string $filePath path to language.php file
20	 * @return Language_WriteFile
21	 */
22	public function factory($filePath)
23	{
24		return new Language_WriteFile(new Language_File($filePath));
25	}
26}
27