Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Add a button to slots
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Charles  
View profile  
 More options Aug 3 2010, 6:00 am
From: Charles <jc.du...@gmail.com>
Date: Tue, 3 Aug 2010 12:00:43 +0200
Local: Tues, Aug 3 2010 6:00 am
Subject: Add a button to slots

Hello,
Our client ask us to show some slots to identifed groups of users. So we
need to add a button "groups" to some slots :
http://img230.imageshack.us/i/screenshot007cq.jpg/. In our database we need
to link a group a to slot.
It works in Ajax when we edit an existing slot (because we know at this
moment the slot id).
But the problem is that when we create a new slot we don't know the id it
will have when the slot will be saved in the DB.
So we need the override public function executeEdit(sfRequest $request) in
BaseaSlotActions.class.php to take in account our new parameter (group).
But, of course, we don't want to edit this class that is part of Aposrtophe
plugin.
Perhaps BaseaSlotActions.class.php should be an empty class that we could
override ?

Any help would be most welcome !


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Boutell  
View profile  
 More options Aug 3 2010, 8:13 am
From: Tom Boutell <t...@punkave.com>
Date: Tue, 3 Aug 2010 08:13:33 -0400
Local: Tues, Aug 3 2010 8:13 am
Subject: Re: [apostrophe] Add a button to slots
Override aSlotActions. That extends BaseaSlotActions and adds nothing,
so you can override it and call parent:: versions before/after doing
whatever it is you want to do in addition. This is standard for
Symfony modules in plugins.

--
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Boutell  
View profile  
 More options Aug 3 2010, 8:15 am
From: Tom Boutell <t...@punkave.com>
Date: Tue, 3 Aug 2010 08:15:42 -0400
Local: Tues, Aug 3 2010 8:15 am
Subject: Re: [apostrophe] Add a button to slots
Pardon, you're right, BaseaSlotActions is the parent of the various
Base classes for individual slot types. So you would need to do the
override for individual slot types, which is a bit awkward I'll admit.

We should make BaseaSlotActions an override of PluginASlotActions
which should be the real container of our code so that you can easily
override for all slots without copying. Would you mind opening a
ticket about this in trac.apostrophenow.org?

--
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »