Now canvas are cleaner, we can move local method to canvas

example as protected or private.
This commit is contained in:
eldy 2011-09-28 21:39:44 +02:00
parent 9d12daef9f
commit 51c94f7c7e
5 changed files with 6 additions and 6 deletions

View File

@ -67,7 +67,7 @@ abstract class ActionsCardCommon
* *
* @return void * @return void
*/ */
private function getInstanceDao() protected function getInstanceDao()
{ {
if (! is_object($this->object)) if (! is_object($this->object))
{ {
@ -93,7 +93,7 @@ abstract class ActionsCardCommon
* @param ref Object ref * @param ref Object ref
* @return object Object loaded * @return object Object loaded
*/ */
function getObject($id,$ref='') protected function getObject($id,$ref='')
{ {
$ret = $this->getInstanceDao(); $ret = $this->getInstanceDao();

View File

@ -17,7 +17,7 @@
*/ */
?> ?>
<!-- BEGIN PHP TEMPLATE --> <!-- BEGIN PHP TEMPLATE CARD_CREATE.TPL.PHP COMPANY -->
<?php print_fiche_titre($this->control->tpl['title']); ?> <?php print_fiche_titre($this->control->tpl['title']); ?>

View File

@ -20,7 +20,7 @@ $contact = $GLOBALS['objcanvas']->control->object;
?> ?>
<!-- BEGIN PHP TEMPLATE CARD_EDIT.TPL.PHP DEFAULT --> <!-- BEGIN PHP TEMPLATE CARD_EDIT.TPL.PHP COMPANY -->
<?php <?php
print_fiche_titre($this->control->tpl['title']); print_fiche_titre($this->control->tpl['title']);

View File

@ -20,7 +20,7 @@ $soc = $GLOBALS['objcanvas']->control->object;
?> ?>
<!-- BEGIN PHP TEMPLATE CARD_VIEW.TPL.PHP DEFAULT --> <!-- BEGIN PHP TEMPLATE CARD_VIEW.TPL.PHP COMPANY -->
<?php <?php
$head = societe_prepare_head($soc); $head = societe_prepare_head($soc);

View File

@ -17,7 +17,7 @@
*/ */
?> ?>
<!-- BEGIN PHP TEMPLATE --> <!-- BEGIN PHP TEMPLATE CARD_CREATE.TPL.PHP INDIVIDUAL -->
<?php <?php
print_fiche_titre($this->control->tpl['title']); print_fiche_titre($this->control->tpl['title']);