Clean code.
This commit is contained in:
parent
02112fc969
commit
c02fbcf293
@ -46,7 +46,8 @@ abstract class ActionsAdherentCardCommon
|
|||||||
/**
|
/**
|
||||||
* Instantiation of DAO class
|
* Instantiation of DAO class
|
||||||
*
|
*
|
||||||
* @return void
|
* @return int 0
|
||||||
|
* @deprecated Using getInstanceDao should not be used.
|
||||||
*/
|
*/
|
||||||
private function getInstanceDao()
|
private function getInstanceDao()
|
||||||
{
|
{
|
||||||
@ -65,6 +66,7 @@ abstract class ActionsAdherentCardCommon
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -46,7 +46,8 @@ abstract class ActionsContactCardCommon
|
|||||||
/**
|
/**
|
||||||
* Instantiation of DAO class
|
* Instantiation of DAO class
|
||||||
*
|
*
|
||||||
* @return void
|
* @return int 0
|
||||||
|
* @deprecated Using getInstanceDao should not be used.
|
||||||
*/
|
*/
|
||||||
private function getInstanceDao()
|
private function getInstanceDao()
|
||||||
{
|
{
|
||||||
@ -65,6 +66,7 @@ abstract class ActionsContactCardCommon
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -46,11 +46,11 @@ abstract class ActionsCardCommon
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Instantiation of DAO class
|
* Instantiation of DAO class
|
||||||
* TODO This method is useless
|
|
||||||
*
|
*
|
||||||
* @return void
|
* @return int 0
|
||||||
|
* @deprecated Using getInstanceDao should not be used.
|
||||||
*/
|
*/
|
||||||
protected function getInstanceDao()
|
private function getInstanceDao()
|
||||||
{
|
{
|
||||||
if (! is_object($this->object))
|
if (! is_object($this->object))
|
||||||
{
|
{
|
||||||
@ -67,6 +67,7 @@ abstract class ActionsCardCommon
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -78,7 +79,7 @@ abstract class ActionsCardCommon
|
|||||||
*/
|
*/
|
||||||
protected function getObject($id,$ref='')
|
protected function getObject($id,$ref='')
|
||||||
{
|
{
|
||||||
$ret = $this->getInstanceDao();
|
//$ret = $this->getInstanceDao();
|
||||||
|
|
||||||
$object = new Societe($this->db);
|
$object = new Societe($this->db);
|
||||||
if (! empty($id) || ! empty($ref)) $object->fetch($id,$ref);
|
if (! empty($id) || ! empty($ref)) $object->fetch($id,$ref);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user