Now canvas are cleaner, we can move local method to canvas
example as protected or private.
This commit is contained in:
parent
9d12daef9f
commit
51c94f7c7e
@ -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();
|
||||||
|
|
||||||
|
|||||||
@ -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']); ?>
|
||||||
|
|
||||||
|
|||||||
@ -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']);
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
@ -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']);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user