Make helper methods available for derived classes.

Use-case: a module build with modulebuilder can make it's own fetch
method using the helper methods.
This commit is contained in:
fappels 2018-03-23 17:35:46 +01:00
parent 83b6dd4cb9
commit caa43ae2f6

View File

@ -6111,7 +6111,7 @@ abstract class CommonObject
* *
* @return array * @return array
*/ */
private function set_save_query() protected function set_save_query()
{ {
global $conf; global $conf;
@ -6165,7 +6165,7 @@ abstract class CommonObject
* *
* @param stdClass $obj Contain data of object from database * @param stdClass $obj Contain data of object from database
*/ */
private function setVarsFromFetchObj(&$obj) protected function setVarsFromFetchObj(&$obj)
{ {
foreach ($this->fields as $field => $info) foreach ($this->fields as $field => $info)
{ {
@ -6210,7 +6210,7 @@ abstract class CommonObject
* *
* @return string * @return string
*/ */
private function get_field_list() protected function get_field_list()
{ {
$keys = array_keys($this->fields); $keys = array_keys($this->fields);
return implode(',', $keys); return implode(',', $keys);