lastdance: (Default)
lastdance ([personal profile] lastdance) wrote in [community profile] style_system2009-05-05 09:26 pm

Calling functions in other classes

I've been reading S2 documentation like crazy, and I'm pretty sure the answer is 'no' but I'm going to throw out the question anyway:

Is there any possible way to call functions from a different view than the one you're currently on? For example, the EntryPage class has a function print_comments. But what if I want to print the subjects of the 5 latest comments on the Recent view (maybe in the sidebar)? The RecentPage class doesn't include that function, so I'm assuming there's no way to call it unless the core was rewritten to add it into RecentPage and allow it to take parameters so it knows which comments to pull back. Am I correct in that assumption?

I'll gladly take the question elsewhere if this isn't the right place. Any direction would be so much appreciated.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-05-06 06:52 pm (UTC)(link)
Hmm, probably not. If they are using a third-party API, and it's not entirely S2, then no amount of documentation on our end will make it clear, I'm afraid!
av8rmike: Neo from Matrix, text: I know S2 (I know s2)

[personal profile] av8rmike 2009-05-07 09:26 pm (UTC)(link)
They're definitely using some kind of off-site tracker in PHP. You can see calls to 0x0 images in the page source (tables and un-validated HTML, ewww).