Forums | Mahara Community

Open Discussion /
views


anonymous profile picture
Account deleted
Posts: 26

29 May 2009, 10:33

Hello everyone,
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.
Heinz Krettek's profile picture
Posts: 480

29 May 2009, 13:20

Hi Christian,

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.

HTH Heinz

 

anonymous profile picture
Account deleted
Posts: 1643

01 June 2009, 16:31

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' Wink

3 results