__construct (Constructor) [line 113]
File_Therion_Survey __construct(
string
$id, [array
$options = array()])
|
|
Create a new therion survey object.
Survey ID is a therion keyword, thus restricted to a sequence of A-Z, a-z, 0-9 and _-/ characters (not starting with ‘-’). If you want to set an alternate cleartext name, use
.
Parameters:
addCentreline [line 712]
Add a centreline definition.
This will implicitely update the centrelines survey context.
Example:
// $centreline->....
Parameters:
addJoin [line 815]
Add a scrap join.
Example:
Parameters:
addMap [line 850]
Add a map definition.
Example:
// $map->....
Parameters:
addScrap [line 781]
Add a scrap object.
Example:
// $scrap->....
Parameters:
addSurface [line 885]
Add a surface definition.
Example:
// $surface->....
Parameters:
addSurvey [line 610]
Add a subsurvey.
Adds a survey as subsurvey to this survey and updates its parent reference.
A File_Therion_Exception is thrown, when the child survey is already present as one of the parents.
Example:
// $subsurvey->....
Parameters:
clearCentrelines [line 721]
Remove associated centrelines.
clearJoins [line 823]
Clean existing scrap joins.
clearMaps [line 858]
clearScraps [line 789]
Remove associated scraps.
clearSurface [line 893]
Remove associated surface definitions.
clearSurveys [line 631]
Remove associated subsurveys.
count [line 914]
Count subsurveys of this survey (SPL Countable).
getAllStations [line 748]
array getAllStations(
[int
$maxDepth = 0])
|
|
Get all stations defined in all centrelines.
By default, only returns stations local to this survey. With $maxDepth you can swith on recursion:
- -1 = recurse endlessly
- 0 = only local stations (default)
- >1 = recurse down to this level (1=first child level, etc)
Parameters:
getCentrelines [line 731]
Get existing Centrelines objects.
getEquates [line 515]
array getEquates(
[int
$maxDepth = 0])
|
|
Get equated stations of this survey.
All local stations with valid equates (viewed from this survey) are returned as array of File_Therion_Station), because, etc), those, wo, this, yougetAllStations()) and testing each station for equates.
Parameters:
getJoins [line 833]
Get existing scrap joins.
getMaps [line 868]
Get existing Map objects.
getName [line 463]
Get name (id) of this survey.
getParent [line 693]
Returns the parent survey of this survey.
Returns null when this survey has no parent set.
getScraps [line 799]
Get existing Scrap objects.
getSurfaces [line 903]
Get existing surface objects.
getSurveys [line 646]
Get existing subsurveys.
You may query for a survey in which case either the survey is returned or throws an OutOfBoundsException when not found.
Parameters:
parse [line 135]
Parses given Therion_Line-objects into internal data structures.
Parameters:
setName [line 474]
Change name (id) of this survey.
Parameters:
setParent [line 681]
Sets the parent survey of this survey.
Note that in contrast to addSurvey(), no references in the parent will be updated: The parent does not know of its child. It's mainly called by addSurvey() but may be used to create fake survey structures manually (may come in handy for equate and friends together with only partial survey data available as PHP objects).
Parameters:
toLines [line 341]
Generate line content from this object.