Forums | Mahara Community
29 May 2009, 10:33 AM
in the user folder is a file called view.php.
In this file there is an assessment with the following line of code:
if (can_view_view ($ view-> id)) (...
How can I view the code for the method can_view_view ($ view-> id))?.
I changed some things to make public views by default for display to users.
I really need to assess whether the views are public and apparently this method does not.
thank you very much.
29 May 2009, 1:20 PM
in an linux environment you can use a tool like grep to search for strings.
Syntax grep -r "method can_view_view" * looks for all appearances of the searchstring in the actual folder and the subfolders. I think windows offers something similiar.
01 June 2009, 4:31 PM
can_view_view is a function in lib/mahara.php, about half way down.
Heinz: It's a function, not a method, PHP doesn't have the keyword 'method'