Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Joomla plugin triggers questions

Received: by 10.52.69.77 with SMTP id c13mr3303306vdu.4.1350481683147;
        Wed, 17 Oct 2012 06:48:03 -0700 (PDT)
X-BeenThere: joomla-dev-general@googlegroups.com
Received: by 10.220.226.7 with SMTP id iu7ls223369vcb.6.gmail; Wed, 17 Oct
 2012 06:47:58 -0700 (PDT)
Received: by 10.52.97.101 with SMTP id dz5mr584085vdb.2.1350481678339;
        Wed, 17 Oct 2012 06:47:58 -0700 (PDT)
Date: Wed, 17 Oct 2012 06:47:57 -0700 (PDT)
From: nant <nanti...@gmail.com>
To: joomla-dev-general@googlegroups.com
Message-Id: <b4d1cfe5-1a6e-467c-8358-287b62a3c662@googlegroups.com>
In-Reply-To: <7e2b1abe-a571-4313-b79b-daa0a877bd5c@googlegroups.com>
References: <45d24837-4a76-42db-8bba-b0afe3b83f9e@googlegroups.com>
 <e92b67a2-4d66-4fa7-af8c-64b83c36c4fe@c20g2000vbz.googlegroups.com>
 <0a0df972-5fad-4b5a-a101-25a4933cd58f@googlegroups.com>
 <cd8217ca-266b-4c86-804f-70ffdc0966df@googlegroups.com>
 <449256da-0d17-45b2-85ec-7b11a6e7d884@googlegroups.com>
 <848c22ce-0c7f-496f-bd6f-3773e42aa886@googlegroups.com>
 <7e2b1abe-a571-4313-b79b-daa0a877bd5c@googlegroups.com>
Subject: Re: Joomla plugin triggers questions
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_2728_32399822.1350481677616"

------=_Part_2728_32399822.1350481677616
Content-Type: multipart/alternative; 
	boundary="----=_Part_2729_22501080.1350481677616"

------=_Part_2729_22501080.1350481677616
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

That doesn't appear to trigger in my tests.

It does not fire at all in these test cases:

1. Saving permissions from Joomla global area.
2. Saving permissions from component options area.

On Wednesday, October 17, 2012 3:55:05 PM UTC+3, Dan YJ wrote:
>
> @nant 
>
> public function onExtensionBeforeSave($name, $data){
> }
> is what you are looking for 
>
> On Wednesday, October 17, 2012 2:56:35 AM UTC-4, nant wrote:
>>
>> Also, what is the general form save event?
>> Any doc on this?
>>
>> Thanks again!
>> Nick
>>
>> On Wednesday, October 17, 2012 4:25:29 AM UTC+3, elin wrote:
>>>
>>> Well  after save group .. happens after you save a group ..which happens 
>>> ... on a group page.  It's pretty semantic.
>>>
>>> What do you mean by alter permissions related to a group?  Those are not 
>>> saved with the group they are save with the asset they apply to.
>>>
>>> Are you asking if there is an event when you change permissions for 
>>> something? You could always use the general form save event if the changes 
>>> are happening via the ui.  Are you basically looking for an event that is 
>>> specifically triggered when there is a save to the asset table?
>>>
>>> http://docs.joomla.org/16Events  is a list of 1.6/2.5 events
>>>
>>> Elin
>>> On Tuesday, October 16, 2012 7:38:15 PM UTC-4, nant wrote:
>>>>
>>>> Well, this trigger seems kind of useless.
>>>>
>>>> If I alter permissions related to a group, this trigger is not fired.
>>>>
>>>> It looks like it is only fired if I just save the group from the group 
>>>> page - and altering the actual group characteristics does nothing.
>>>>
>>>> Is there ar trigger that is fired if a group permissions save is 
>>>> executed?
>>>>  
>>>>
>>>> On Thursday, October 11, 2012 2:09:24 PM UTC+3, nant wrote:
>>>>>
>>>>> Thanks for feedback - yup it looks like that is where the trigger is 
>>>>> defined.
>>>>>
>>>>> Questions now are:
>>>>>
>>>>> 1. what parameters can I expect here and perhaps a sample usage?
>>>>> 2. this is not listed on the doc site - how can i find other event 
>>>>> triggers also not listed?
>>>>>
>>>>> Thanks again!
>>>>> Nick
>>>>>
>>>>> On Thursday, October 11, 2012 1:56:56 PM UTC+3, piotr_cz wrote:
>>>>>>
>>>>>> I'd say that this is an event of UsersModelGroup class 
>>>>>> (administrator/ 
>>>>>> com_users/models.group.php), 
>>>>>> triggered by JModelAdmin parent class in function save so after 
>>>>>> usergroup table is stored and component cache cleaned. 
>>>>>>
>>>>>> On Oct 11, 10:13 am, nant <nanti...@gmail.com> wrote: 
>>>>>> > I have been helping out the civiCRM team to fix some issues they 
>>>>>> have with 
>>>>>> > Joomla 2.5 integration. 
>>>>>> > 
>>>>>> > They currently have a Joomla plugin that is triggering off this 
>>>>>> event: 
>>>>>> > 
>>>>>> > onUserAfterSaveGroup 
>>>>>> > 
>>>>>> > When exactly is this fired? 
>>>>>> > 
>>>>>> > Where can I find perhaps a complete list of event triggers for 
>>>>>> Joomla? 
>>>>>> > 
>>>>>> > I see some triggers in the Joomla documentation site, but I do not 
>>>>>> think 
>>>>>> > its complete - for example I cannot find the one I quoted above. 
>>>>>> > 
>>>>>> > The specific need here is to find a trigger that is fired when a 
>>>>>> > modification is made to any Joomla ACL group (example: modifying 
>>>>>> > permissions). 
>>>>>> > 
>>>>>> > Thanks in advanced for responding ... 
>>>>>> > Nick 
>>>>>>
>>>>>
------=_Part_2729_22501080.1350481677616
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

That doesn't appear to trigger in my tests.<br><br>It does not fire at all =
in these test cases:<br><br>1. Saving permissions from Joomla global area.<=
br>2. Saving permissions from component options area.<br><br>On Wednesday, =
October 17, 2012 3:55:05 PM UTC+3, Dan YJ wrote:<blockquote class=3D"gmail_=
quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;pa=
dding-left: 1ex;"><span style=3D"color:rgb(0,0,0);font-family:arial;font-si=
ze:small">@nant&nbsp;</span><div style=3D"color:rgb(0,0,0);font-family:aria=
l;font-size:small"><br></div><div style=3D"color:rgb(0,0,0);font-family:ari=
al;font-size:small">public function onExtensionBeforeSave($name, $data){<di=
v>}</div><div>is what you are looking for&nbsp;</div></div><br>On Wednesday=
, October 17, 2012 2:56:35 AM UTC-4, nant wrote:<blockquote class=3D"gmail_=
quote" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;paddi=
ng-left:1ex">Also, what is the general form save event?<br>Any doc on this?=
<br><br>Thanks again!<br>Nick<br><br>On Wednesday, October 17, 2012 4:25:29=
 AM UTC+3, elin wrote:<blockquote class=3D"gmail_quote" style=3D"margin:0;m=
argin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">Well &nbsp;af=
ter save group .. happens after you save a group ..which happens ... on a g=
roup page. &nbsp;It's pretty semantic.<div><br></div><div>What do you mean =
by alter permissions related to a group? &nbsp;Those are not saved with the=
 group they are save with the asset they apply to.<br><div><br></div><div>A=
re you asking if there is an event when you change permissions for somethin=
g? You could always use the general form save event if the changes are happ=
ening via the ui. &nbsp;Are you basically looking for an event that is spec=
ifically triggered when there is a save to the asset table?</div><div><br><=
/div><div><a href=3D"http://docs.joomla.org/16Events" target=3D"_blank">htt=
p://docs.joomla.org/<wbr>16Events</a>&nbsp; is a list of 1.6/2.5 events<br>=
</div><div><br>Elin<br>On Tuesday, October 16, 2012 7:38:15 PM UTC-4, nant =
wrote:<blockquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex=
;border-left:1px #ccc solid;padding-left:1ex">Well, this trigger seems kind=
 of useless.<br><br>If I alter permissions related to a group, this trigger=
 is not fired.<br><br>It looks like it is only fired if I just save the gro=
up from the group page - and altering the actual group characteristics does=
 nothing.<br><br>Is there ar trigger that is fired if a group permissions s=
ave is executed?<br>&nbsp;<br><br>On Thursday, October 11, 2012 2:09:24 PM =
UTC+3, nant wrote:<blockquote class=3D"gmail_quote" style=3D"margin:0;margi=
n-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for feedba=
ck - yup it looks like that is where the trigger is defined.<br><br>Questio=
ns now are:<br><br>1. what parameters can I expect here and perhaps a sampl=
e usage?<br>2. this is not listed on the doc site - how can i find other ev=
ent triggers also not listed?<br><br>Thanks again!<br>Nick<br><br>On Thursd=
ay, October 11, 2012 1:56:56 PM UTC+3, piotr_cz wrote:<blockquote class=3D"=
gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid=
;padding-left:1ex">I'd say that this is an event of UsersModelGroup class (=
administrator/
<br>com_users/models.group.php),
<br>triggered by JModelAdmin parent class in function save so after
<br>usergroup table is stored and component cache cleaned.
<br>
<br>On Oct 11, 10:13&nbsp;am, nant &lt;<a>nanti...@gmail.com</a>&gt; wrote:
<br>&gt; I have been helping out the civiCRM team to fix some issues they h=
ave with
<br>&gt; Joomla 2.5 integration.
<br>&gt;
<br>&gt; They currently have a Joomla plugin that is triggering off this ev=
ent:
<br>&gt;
<br>&gt; onUserAfterSaveGroup
<br>&gt;
<br>&gt; When exactly is this fired?
<br>&gt;
<br>&gt; Where can I find perhaps a complete list of event triggers for Joo=
mla?
<br>&gt;
<br>&gt; I see some triggers in the Joomla documentation site, but I do not=
 think
<br>&gt; its complete - for example I cannot find the one I quoted above.
<br>&gt;
<br>&gt; The specific need here is to find a trigger that is fired when a
<br>&gt; modification is made to any Joomla ACL group (example: modifying
<br>&gt; permissions).
<br>&gt;
<br>&gt; Thanks in advanced for responding ...
<br>&gt; Nick
<br></blockquote></blockquote></blockquote></div></div></blockquote></block=
quote></blockquote>
------=_Part_2729_22501080.1350481677616--

------=_Part_2728_32399822.1350481677616--