PHP static method
Tobject::make
Description
Create a topic of type tt_tr and return the topic as a PHP object.
Comments
Using a serialization name, e.g. %person% on the topic type makes it possible to call %makePerson%.
It is possible to use %new% instead of %make%.
Examples
[%$me = Tobject::make("si:http://www.example.com/person");%]
[%$me = Tobject::makePerson();%]
[%$me = Tobject::make_person();%]
[%$apache_log = Tobject::make_logfile("/var/log/apache.log");%]
|
Parameters4
Coding name |
filename
|
Description |
Optionally pass a file to archive in Topincs. Only valid for topic types subtyping Topincs file.
|
Position |
2
|
Type |
|
Coding name |
orignal_name
|
Description |
Optionally provide an alternative original name for a file (other than the one used in the file system).
|
Position |
3
|
Type |
|
Coding name |
encoding
|
Description |
Optionally pass an encoding for files holding characters.
|
Position |
4
|
Type |
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.