Initialize this object as a new (sub)project in a root or any other project.
These projects may or may not store the real textural content for the project's translation. If you want to store the project in the database, you must call ->Save() too. Until saving, the project won't have a Project ID!
- Parameters:
-
| $parentID | In which project to create this project as child. |
| $name | Name of the project to be created. |
| $localeID | Locale ID of this project. |
| $document | The original content of the document to be translated. |
| $skeleton | The document which contains IDs in place of each translation string from origdoc. |
- Exceptions:
- 'Exception' thrown if a project with same name exists in the same location.
Definition at line 135 of file TranslationProject.php.
References Clear(), and NameCollision().
Referenced by CreateRootProject(). |