Documentation

Light-weight, fast, simple and powerful!
 
Translations of this page?:

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.

 
functions/authorid.txt · Last modified: 2011-09-12 00:46 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
Copyright 2010 wolfcms.org / design by yello studio / Wolf CMS Inside