Trace: » level » functions » localization » author » geturi » translator_notes » themes » content » children » authorid
Translations of this page?:
General
Getting Support
Administration
Design
Wolf Reference
Plugin Development
Core Development
- Design documents
- Working guidelines
- References
Press, Graphics and Translations
Wolf CMS books section
authorId()
Wolf saves the unique id number of the user who creates a page, and that id number can be accessed using authorId(). This might be especially useful if two “authors” registered on the system have the same name. For example:
<?php if ($this->authorId() == '1') { // do things } else { // do something else } ?>
would be a more reliable test than one using the author() function (which returns the name) if two users were both registered with same name.
There is also a updaterId() function available.
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
