comanage-dev - Re: [comanage-dev] r391 - in registry/trunk: app/Config app/Console/Command app/Controller app/Model app/Plugin app/Plugin/Grouper app/Plugin/Grouper/Config app/Plugin/Grouper/Lib app/Plugin/Grouper/Model app/Plugin/Grouper/Model/Datasource app/View/CoInvites lib/Cake/Model/Datasource
Subject: COmanage Developers List
List archive
Re: [comanage-dev] r391 - in registry/trunk: app/Config app/Console/Command app/Controller app/Model app/Plugin app/Plugin/Grouper app/Plugin/Grouper/Config app/Plugin/Grouper/Lib app/Plugin/Grouper/Model app/Plugin/Grouper/Model/Datasource app/View/CoInvites lib/Cake/Model/Datasource
Chronological Thread
- From: Benn Oshrin <>
- To:
- Subject: Re: [comanage-dev] r391 - in registry/trunk: app/Config app/Console/Command app/Controller app/Model app/Plugin app/Plugin/Grouper app/Plugin/Grouper/Config app/Plugin/Grouper/Lib app/Plugin/Grouper/Model app/Plugin/Grouper/Model/Datasource app/View/CoInvites lib/Cake/Model/Datasource
- Date: Mon, 05 Nov 2012 18:15:50 -0500
On 10/25/12 6:56 PM,
wrote:
+ /**
+ * Constructor
+ * - precondition:
+ * - postcondition:
+ *
+ * @since COmanage Directory 0.7
+ * @return instance
+ */
+ public function __construct($id = false, $table = null, $ds = null){
+
+ // Depending on the configuration use the Grouper
+ // plugin data source or the default data source.
+ if (Configure::read('Grouper.COmanage.useGrouperDataSource')) {
+ $this->useDbConfig = 'grouperCoGroup';
+ }
+
+ // Depending on the configuration signal that we
+ // do not use a SQL relational database backend for the
+ // data source.
+ if (!Configure::read('COmanage.groupSqlDataSource')) {
+ $this->usesSqlDataSource = false;
+ }
+
+ parent::__construct($id, $table, $ds);
+ }
Does this really need to be in a constructor, as opposed to (say) beforeFilter? We don't override constructors anywhere else, and I'd like to avoid it if we can.
Incidentally, "if (!" is not compliant with the coding guide.
-Benn-
- Re: [comanage-dev] r391 - in registry/trunk: app/Config app/Console/Command app/Controller app/Model app/Plugin app/Plugin/Grouper app/Plugin/Grouper/Config app/Plugin/Grouper/Lib app/Plugin/Grouper/Model app/Plugin/Grouper/Model/Datasource app/View/CoInvites lib/Cake/Model/Datasource, Benn Oshrin, 11/05/2012
- <Possible follow-up(s)>
- Re: [comanage-dev] r391 - in registry/trunk: app/Config app/Console/Command app/Controller app/Model app/Plugin app/Plugin/Grouper app/Plugin/Grouper/Config app/Plugin/Grouper/Lib app/Plugin/Grouper/Model app/Plugin/Grouper/Model/Datasource app/View/CoInvites lib/Cake/Model/Datasource, Benn Oshrin, 11/05/2012
- Re: [comanage-dev] r391 - in registry/trunk: app/Config app/Console/Command app/Controller app/Model app/Plugin app/Plugin/Grouper app/Plugin/Grouper/Config app/Plugin/Grouper/Lib app/Plugin/Grouper/Model app/Plugin/Grouper/Model/Datasource app/View/CoInvites lib/Cake/Model/Datasource, Benn Oshrin, 11/05/2012
- Re: [comanage-dev] r391 - in registry/trunk: app/Config app/Console/Command app/Controller app/Model app/Plugin app/Plugin/Grouper app/Plugin/Grouper/Config app/Plugin/Grouper/Lib app/Plugin/Grouper/Model app/Plugin/Grouper/Model/Datasource app/View/CoInvites lib/Cake/Model/Datasource, Scott Koranda, 11/05/2012
- Re: [comanage-dev] r391 - in registry/trunk: app/Config app/Console/Command app/Controller app/Model app/Plugin app/Plugin/Grouper app/Plugin/Grouper/Config app/Plugin/Grouper/Lib app/Plugin/Grouper/Model app/Plugin/Grouper/Model/Datasource app/View/CoInvites lib/Cake/Model/Datasource, Benn Oshrin, 11/05/2012
- Re: [comanage-dev] r391 - in registry/trunk: app/Config app/Console/Command app/Controller app/Model app/Plugin app/Plugin/Grouper app/Plugin/Grouper/Config app/Plugin/Grouper/Lib app/Plugin/Grouper/Model app/Plugin/Grouper/Model/Datasource app/View/CoInvites lib/Cake/Model/Datasource, Scott Koranda, 11/05/2012
- Re: [comanage-dev] r391 - in registry/trunk: app/Config app/Console/Command app/Controller app/Model app/Plugin app/Plugin/Grouper app/Plugin/Grouper/Config app/Plugin/Grouper/Lib app/Plugin/Grouper/Model app/Plugin/Grouper/Model/Datasource app/View/CoInvites lib/Cake/Model/Datasource, Benn Oshrin, 11/05/2012
Archive powered by MHonArc 2.6.16.