@@ -337,16 +337,16 @@ discard block |
||
| 337 | 337 | } |
| 338 | 338 | |
| 339 | 339 | /** |
| 340 | - * called by hooks to add an icon in the topmenu info location |
|
| 341 | - * |
|
| 342 | - * @param string $id unique element id |
|
| 343 | - * @param string $icon_src src of the icon image. Make sure this nog height then 18pixels |
|
| 344 | - * @param string $iconlink where the icon links to |
|
| 345 | - * @param booleon $blink set true to make the icon blink |
|
| 346 | - * @param mixed $tooltip string containing the tooltip Api\Html, or null of no tooltip |
|
| 347 | - * @todo implement in a reasonable way for jdots |
|
| 348 | - * @return void |
|
| 349 | - */ |
|
| 340 | + * called by hooks to add an icon in the topmenu info location |
|
| 341 | + * |
|
| 342 | + * @param string $id unique element id |
|
| 343 | + * @param string $icon_src src of the icon image. Make sure this nog height then 18pixels |
|
| 344 | + * @param string $iconlink where the icon links to |
|
| 345 | + * @param booleon $blink set true to make the icon blink |
|
| 346 | + * @param mixed $tooltip string containing the tooltip Api\Html, or null of no tooltip |
|
| 347 | + * @todo implement in a reasonable way for jdots |
|
| 348 | + * @return void |
|
| 349 | + */ |
|
| 350 | 350 | function topmenu_info_icon($id,$icon_src,$iconlink,$blink=false,$tooltip=null) |
| 351 | 351 | { |
| 352 | 352 | unset($id,$icon_src,$iconlink,$blink,$tooltip); // not used |
@@ -354,14 +354,14 @@ discard block |
||
| 354 | 354 | } |
| 355 | 355 | |
| 356 | 356 | /** |
| 357 | - * Add menu items to the topmenu template class to be displayed |
|
| 358 | - * |
|
| 359 | - * @param array $app application data |
|
| 360 | - * @param mixed $alt_label string with alternative menu item label default value = null |
|
| 361 | - * @param string $urlextra string with alternate additional code inside <a>-tag |
|
| 362 | - * @access protected |
|
| 363 | - * @return void |
|
| 364 | - */ |
|
| 357 | + * Add menu items to the topmenu template class to be displayed |
|
| 358 | + * |
|
| 359 | + * @param array $app application data |
|
| 360 | + * @param mixed $alt_label string with alternative menu item label default value = null |
|
| 361 | + * @param string $urlextra string with alternate additional code inside <a>-tag |
|
| 362 | + * @access protected |
|
| 363 | + * @return void |
|
| 364 | + */ |
|
| 365 | 365 | function _add_topmenu_item(array $app_data,$alt_label=null) |
| 366 | 366 | { |
| 367 | 367 | switch($app_data['name']) |
@@ -21,29 +21,29 @@ discard block |
||
| 21 | 21 | class Minimal extends Api\Framework |
| 22 | 22 | { |
| 23 | 23 | /** |
| 24 | - * Instance of the phplib Template class for the API's template dir (EGW_TEMPLATE_DIR) |
|
| 25 | - * |
|
| 26 | - * @var Template |
|
| 27 | - */ |
|
| 24 | + * Instance of the phplib Template class for the API's template dir (EGW_TEMPLATE_DIR) |
|
| 25 | + * |
|
| 26 | + * @var Template |
|
| 27 | + */ |
|
| 28 | 28 | var $tpl; |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * Constructor |
|
| 32 | - * |
|
| 33 | - * @param string $template ='default' name of the template |
|
| 34 | - * @return idots_framework |
|
| 35 | - */ |
|
| 31 | + * Constructor |
|
| 32 | + * |
|
| 33 | + * @param string $template ='default' name of the template |
|
| 34 | + * @return idots_framework |
|
| 35 | + */ |
|
| 36 | 36 | function __construct($template='default') |
| 37 | 37 | { |
| 38 | 38 | parent::__construct($template); // call the constructor of the extended class |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * Returns the html-header incl. the opening body tag |
|
| 43 | - * |
|
| 44 | - * @param array $extra =array() extra attributes passed as data-attribute to egw.js |
|
| 45 | - * @return string with html |
|
| 46 | - */ |
|
| 42 | + * Returns the html-header incl. the opening body tag |
|
| 43 | + * |
|
| 44 | + * @param array $extra =array() extra attributes passed as data-attribute to egw.js |
|
| 45 | + * @return string with html |
|
| 46 | + */ |
|
| 47 | 47 | function header(array $extra=array()) |
| 48 | 48 | { |
| 49 | 49 | // make sure header is output only once |
@@ -76,10 +76,10 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | - * Returns the html from the body-tag til the main application area (incl. opening div tag) |
|
| 80 | - * |
|
| 81 | - * @return string with html |
|
| 82 | - */ |
|
| 79 | + * Returns the html from the body-tag til the main application area (incl. opening div tag) |
|
| 80 | + * |
|
| 81 | + * @return string with html |
|
| 82 | + */ |
|
| 83 | 83 | function navbar() |
| 84 | 84 | { |
| 85 | 85 | return ''; |
@@ -101,37 +101,37 @@ discard block |
||
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /** |
| 104 | - * Add menu items to the topmenu template class to be displayed |
|
| 105 | - * |
|
| 106 | - * @param array $app application data |
|
| 107 | - * @param mixed $alt_label string with alternative menu item label default value = null |
|
| 108 | - * @param string $urlextra string with alternate additional code inside <a>-tag |
|
| 109 | - * @access protected |
|
| 110 | - * @return void |
|
| 111 | - */ |
|
| 104 | + * Add menu items to the topmenu template class to be displayed |
|
| 105 | + * |
|
| 106 | + * @param array $app application data |
|
| 107 | + * @param mixed $alt_label string with alternative menu item label default value = null |
|
| 108 | + * @param string $urlextra string with alternate additional code inside <a>-tag |
|
| 109 | + * @access protected |
|
| 110 | + * @return void |
|
| 111 | + */ |
|
| 112 | 112 | function _add_topmenu_item(array $app_data,$alt_label=null) |
| 113 | 113 | { |
| 114 | 114 | unset($app_data, $alt_label); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | - * Add info items to the topmenu template class to be displayed |
|
| 119 | - * |
|
| 120 | - * @param string $content html of item |
|
| 121 | - * @param string $id =null |
|
| 122 | - * @access protected |
|
| 123 | - * @return void |
|
| 124 | - */ |
|
| 118 | + * Add info items to the topmenu template class to be displayed |
|
| 119 | + * |
|
| 120 | + * @param string $content html of item |
|
| 121 | + * @param string $id =null |
|
| 122 | + * @access protected |
|
| 123 | + * @return void |
|
| 124 | + */ |
|
| 125 | 125 | function _add_topmenu_info_item($content, $id=null) |
| 126 | 126 | { |
| 127 | 127 | unset($content, $id); |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | /** |
| 131 | - * Returns the html from the closing div of the main application area to the closing html-tag |
|
| 132 | - * |
|
| 133 | - * @return string html or null if no footer needed/wanted |
|
| 134 | - */ |
|
| 131 | + * Returns the html from the closing div of the main application area to the closing html-tag |
|
| 132 | + * |
|
| 133 | + * @return string html or null if no footer needed/wanted |
|
| 134 | + */ |
|
| 135 | 135 | function footer() |
| 136 | 136 | { |
| 137 | 137 | static $footer_done=0; |
@@ -141,29 +141,29 @@ discard block |
||
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | /** |
| 144 | - * Parses one sidebox menu and add's the html to $this->sidebox_content for later use by $this->navbar |
|
| 145 | - * |
|
| 146 | - * @param string $appname |
|
| 147 | - * @param string $menu_title |
|
| 148 | - * @param array $file |
|
| 149 | - * @param string $type =null 'admin', 'preferences', 'favorites', ... |
|
| 150 | - */ |
|
| 144 | + * Parses one sidebox menu and add's the html to $this->sidebox_content for later use by $this->navbar |
|
| 145 | + * |
|
| 146 | + * @param string $appname |
|
| 147 | + * @param string $menu_title |
|
| 148 | + * @param array $file |
|
| 149 | + * @param string $type =null 'admin', 'preferences', 'favorites', ... |
|
| 150 | + */ |
|
| 151 | 151 | function sidebox($appname,$menu_title,$file,$type=null) |
| 152 | 152 | { |
| 153 | 153 | unset($appname, $menu_title, $file, $type); |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | /** |
| 157 | - * called by hooks to add an icon in the topmenu info location |
|
| 158 | - * |
|
| 159 | - * @param string $id unique element id |
|
| 160 | - * @param string $icon_src src of the icon image. Make sure this nog height then 18pixels |
|
| 161 | - * @param string $iconlink where the icon links to |
|
| 162 | - * @param booleon $blink set true to make the icon blink |
|
| 163 | - * @param mixed $tooltip string containing the tooltip html, or null of no tooltip |
|
| 164 | - * @access public |
|
| 165 | - * @return void |
|
| 166 | - */ |
|
| 157 | + * called by hooks to add an icon in the topmenu info location |
|
| 158 | + * |
|
| 159 | + * @param string $id unique element id |
|
| 160 | + * @param string $icon_src src of the icon image. Make sure this nog height then 18pixels |
|
| 161 | + * @param string $iconlink where the icon links to |
|
| 162 | + * @param booleon $blink set true to make the icon blink |
|
| 163 | + * @param mixed $tooltip string containing the tooltip html, or null of no tooltip |
|
| 164 | + * @access public |
|
| 165 | + * @return void |
|
| 166 | + */ |
|
| 167 | 167 | function topmenu_info_icon($id,$icon_src,$iconlink,$blink=false,$tooltip=null) |
| 168 | 168 | { |
| 169 | 169 | unset($id, $icon_src, $iconlink, $blink, $tooltip); |
@@ -32,33 +32,33 @@ discard block |
||
| 32 | 32 | const SAMBA4 = 2; |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * @var array $namingContext holds the supported namingcontexts |
|
| 36 | - */ |
|
| 35 | + * @var array $namingContext holds the supported namingcontexts |
|
| 36 | + */ |
|
| 37 | 37 | var $namingContext = array(); |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * @var string $version holds the LDAP server version |
|
| 41 | - */ |
|
| 40 | + * @var string $version holds the LDAP server version |
|
| 41 | + */ |
|
| 42 | 42 | var $version = 2; |
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | - * @var integer $serverType holds the type of LDAP server(OpenLDAP, ADS, NDS, ...) |
|
| 46 | - */ |
|
| 45 | + * @var integer $serverType holds the type of LDAP server(OpenLDAP, ADS, NDS, ...) |
|
| 46 | + */ |
|
| 47 | 47 | var $serverType = 0; |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | - * @var string $_subSchemaEntry the subschema entry DN |
|
| 51 | - */ |
|
| 50 | + * @var string $_subSchemaEntry the subschema entry DN |
|
| 51 | + */ |
|
| 52 | 52 | var $subSchemaEntry = ''; |
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | - * @var array $supportedObjectClasses the supported objectclasses |
|
| 56 | - */ |
|
| 55 | + * @var array $supportedObjectClasses the supported objectclasses |
|
| 56 | + */ |
|
| 57 | 57 | var $supportedObjectClasses = array(); |
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | - * @var array $supportedOIDs the supported OIDs |
|
| 61 | - */ |
|
| 60 | + * @var array $supportedOIDs the supported OIDs |
|
| 61 | + */ |
|
| 62 | 62 | var $supportedOIDs = array(); |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -79,50 +79,50 @@ discard block |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | - * gets the version |
|
| 83 | - * |
|
| 84 | - * @return integer the supported ldap version |
|
| 85 | - */ |
|
| 82 | + * gets the version |
|
| 83 | + * |
|
| 84 | + * @return integer the supported ldap version |
|
| 85 | + */ |
|
| 86 | 86 | function getVersion() |
| 87 | 87 | { |
| 88 | 88 | return $this->version; |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | - * sets the namingcontexts |
|
| 93 | - * |
|
| 94 | - * @param array $_namingContext the supported namingcontexts |
|
| 95 | - */ |
|
| 92 | + * sets the namingcontexts |
|
| 93 | + * |
|
| 94 | + * @param array $_namingContext the supported namingcontexts |
|
| 95 | + */ |
|
| 96 | 96 | function setNamingContexts($_namingContext) |
| 97 | 97 | { |
| 98 | 98 | $this->namingContext = $_namingContext; |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | - * sets the type of the ldap server(OpenLDAP, ADS, NDS, ...) |
|
| 103 | - * |
|
| 104 | - * @param integer $_serverType the type of ldap server |
|
| 105 | - */ |
|
| 102 | + * sets the type of the ldap server(OpenLDAP, ADS, NDS, ...) |
|
| 103 | + * |
|
| 104 | + * @param integer $_serverType the type of ldap server |
|
| 105 | + */ |
|
| 106 | 106 | function setServerType($_serverType) |
| 107 | 107 | { |
| 108 | 108 | $this->serverType = $_serverType; |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | /** |
| 112 | - * sets the DN for the subschema entry |
|
| 113 | - * |
|
| 114 | - * @param string $_subSchemaEntry the subschema entry DN |
|
| 115 | - */ |
|
| 112 | + * sets the DN for the subschema entry |
|
| 113 | + * |
|
| 114 | + * @param string $_subSchemaEntry the subschema entry DN |
|
| 115 | + */ |
|
| 116 | 116 | function setSubSchemaEntry($_subSchemaEntry) |
| 117 | 117 | { |
| 118 | 118 | $this->subSchemaEntry = $_subSchemaEntry; |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | /** |
| 122 | - * sets the supported objectclasses |
|
| 123 | - * |
|
| 124 | - * @param array $_supportedObjectClasses the supported objectclasses |
|
| 125 | - */ |
|
| 122 | + * sets the supported objectclasses |
|
| 123 | + * |
|
| 124 | + * @param array $_supportedObjectClasses the supported objectclasses |
|
| 125 | + */ |
|
| 126 | 126 | function setSupportedObjectClasses($_supportedObjectClasses) |
| 127 | 127 | { |
| 128 | 128 | $this->supportedOIDs = $_supportedObjectClasses; |
@@ -130,20 +130,20 @@ discard block |
||
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | /** |
| 133 | - * sets the version |
|
| 134 | - * |
|
| 135 | - * @param integer $_version the supported ldap version |
|
| 136 | - */ |
|
| 133 | + * sets the version |
|
| 134 | + * |
|
| 135 | + * @param integer $_version the supported ldap version |
|
| 136 | + */ |
|
| 137 | 137 | function setVersion($_version) |
| 138 | 138 | { |
| 139 | 139 | $this->version = $_version; |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | /** |
| 143 | - * checks for supported objectclasses |
|
| 144 | - * |
|
| 145 | - * @return bool returns true if the ldap server supports this objectclass |
|
| 146 | - */ |
|
| 143 | + * checks for supported objectclasses |
|
| 144 | + * |
|
| 145 | + * @return bool returns true if the ldap server supports this objectclass |
|
| 146 | + */ |
|
| 147 | 147 | function supportsObjectClass($_objectClass) |
| 148 | 148 | { |
| 149 | 149 | if($this->supportedObjectClasses[strtolower($_objectClass)]) |
@@ -242,13 +242,13 @@ |
||
| 242 | 242 | if ($ret === false && ($err = json_last_error())) |
| 243 | 243 | { |
| 244 | 244 | static $json_err2str = array( |
| 245 | - JSON_ERROR_NONE => 'No errors', |
|
| 246 | - JSON_ERROR_DEPTH => 'Maximum stack depth exceeded', |
|
| 247 | - JSON_ERROR_STATE_MISMATCH => 'Underflow or the modes mismatch', |
|
| 248 | - JSON_ERROR_CTRL_CHAR => 'Unexpected control character found', |
|
| 249 | - JSON_ERROR_SYNTAX => 'Syntax error, malformed JSON', |
|
| 250 | - JSON_ERROR_UTF8 => 'Malformed UTF-8 characters, possibly incorrectly encoded', |
|
| 251 | - ); |
|
| 245 | + JSON_ERROR_NONE => 'No errors', |
|
| 246 | + JSON_ERROR_DEPTH => 'Maximum stack depth exceeded', |
|
| 247 | + JSON_ERROR_STATE_MISMATCH => 'Underflow or the modes mismatch', |
|
| 248 | + JSON_ERROR_CTRL_CHAR => 'Unexpected control character found', |
|
| 249 | + JSON_ERROR_SYNTAX => 'Syntax error, malformed JSON', |
|
| 250 | + JSON_ERROR_UTF8 => 'Malformed UTF-8 characters, possibly incorrectly encoded', |
|
| 251 | + ); |
|
| 252 | 252 | error_log(__METHOD__.'('.array2string($var).') json_last_error()='.$err.'='.$json_err2str[$err]); |
| 253 | 253 | |
| 254 | 254 | if (($var = self::fix_content($var))) |
@@ -249,12 +249,12 @@ |
||
| 249 | 249 | |
| 250 | 250 | $this->component = Horde_Icalendar::newComponent($type, $this); |
| 251 | 251 | //error_log(__METHOD__."() this->component = Horde_Icalendar::newComponent('$type', \$this) = ".array2string($this->component)); |
| 252 | - if ($this->component === false) |
|
| 253 | - { |
|
| 254 | - error_log(__METHOD__."() Horde_Icalendar::newComponent('$type', \$this) returned FALSE"); |
|
| 255 | - return; |
|
| 256 | - //return PEAR::raiseError("Unable to create object for type $type"); |
|
| 257 | - } |
|
| 252 | + if ($this->component === false) |
|
| 253 | + { |
|
| 254 | + error_log(__METHOD__."() Horde_Icalendar::newComponent('$type', \$this) returned FALSE"); |
|
| 255 | + return; |
|
| 256 | + //return PEAR::raiseError("Unable to create object for type $type"); |
|
| 257 | + } |
|
| 258 | 258 | if ($this->charset && $this->charset != 'utf-8') |
| 259 | 259 | { |
| 260 | 260 | $data = Api\Translation::convert($data, $this->charset, 'utf-8'); |
@@ -1044,13 +1044,13 @@ |
||
| 1044 | 1044 | } |
| 1045 | 1045 | |
| 1046 | 1046 | /** |
| 1047 | - * Get the color of a category |
|
| 1048 | - * |
|
| 1049 | - * For multiple cats, the first with a color is used |
|
| 1050 | - * |
|
| 1051 | - * @param int|string $_cats multiple comma-separated cat_id's |
|
| 1052 | - * @return string |
|
| 1053 | - */ |
|
| 1047 | + * Get the color of a category |
|
| 1048 | + * |
|
| 1049 | + * For multiple cats, the first with a color is used |
|
| 1050 | + * |
|
| 1051 | + * @param int|string $_cats multiple comma-separated cat_id's |
|
| 1052 | + * @return string |
|
| 1053 | + */ |
|
| 1054 | 1054 | static function cats2color($_cats) |
| 1055 | 1055 | { |
| 1056 | 1056 | static $cat2color = array(); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | echo "<p>solink.link('$app1',$id1,'$app2',$id2,'$remark',$owner)</p>\n"; |
| 67 | 67 | } |
| 68 | 68 | if ($app1 == $app2 && $id1 == $id2 || |
| 69 | - $id1 == '' || $id2 == '' || $app1 == '' || $app2 == '') |
|
| 69 | + $id1 == '' || $id2 == '' || $app1 == '' || $app2 == '') |
|
| 70 | 70 | { |
| 71 | 71 | return False; // dont link to self or other nosense |
| 72 | 72 | } |
@@ -412,26 +412,26 @@ discard block |
||
| 412 | 412 | array('table'=>self::TABLE, |
| 413 | 413 | 'cols'=>'c.*,b.link_app1 AS app3,b.link_id1 AS id3,b.link_id AS link3', |
| 414 | 414 | 'where'=>'a.link_app1='.self::$db->quote($app).' AND c.link_app2='.self::$db->quote($target_app). |
| 415 | - (!$target_id ? '' : self::$db->expression(self::TABLE,' AND c.',array('link_id2' => $target_id))), |
|
| 416 | - 'join'=>" a |
|
| 415 | + (!$target_id ? '' : self::$db->expression(self::TABLE,' AND c.',array('link_id2' => $target_id))), |
|
| 416 | + 'join'=>" a |
|
| 417 | 417 | JOIN $table b ON a.link_id2=b.link_id1 AND a.link_app2=b.link_app1 |
| 418 | 418 | JOIN $table c ON a.link_id1=c.link_id1 AND a.link_app1=c.link_app1 AND a.link_id!=c.link_id AND c.link_app2=b.link_app2 AND c.link_id2=b.link_id2", |
| 419 | 419 | ), |
| 420 | 420 | // retrieve the type of links, where the relation is realized as timesheet->infolog/tracker and projectmanager->timesheet |
| 421 | 421 | array('table'=>self::TABLE, |
| 422 | 422 | 'cols'=>'b.link_id, b.link_app2 as app1, b.link_id2 as id1, b.link_app1 as app2, b.link_id1 as id2, b.link_remark,b.link_lastmod,b.link_owner,b.deleted,c.link_app1 AS app3,c.link_id1 AS id3,c.link_id AS link3', |
| 423 | - 'where'=>'a.link_app1='.self::$db->quote($app).' AND b.link_app1='.self::$db->quote($target_app). |
|
| 424 | - (!$target_id ? '' : self::$db->expression(self::TABLE,' AND b.',array('link_id1' => $target_id))), |
|
| 425 | - 'join'=>" a |
|
| 423 | + 'where'=>'a.link_app1='.self::$db->quote($app).' AND b.link_app1='.self::$db->quote($target_app). |
|
| 424 | + (!$target_id ? '' : self::$db->expression(self::TABLE,' AND b.',array('link_id1' => $target_id))), |
|
| 425 | + 'join'=>" a |
|
| 426 | 426 | JOIN $table b ON a.link_id1=b.link_id2 AND a.link_app1=b.link_app2 |
| 427 | 427 | JOIN $table c ON a.link_id2=c.link_id1 AND a.link_app2=c.link_app1 AND a.link_id!=c.link_id AND c.link_app2=b.link_app1 AND c.link_id2=b.link_id1", |
| 428 | 428 | ), |
| 429 | 429 | // retrieve the type of links, where the relation is realized as timesheet->projectmanager and infolog->timesheet |
| 430 | 430 | array('table'=>self::TABLE, |
| 431 | 431 | 'cols'=>'a.*,c.link_app1 AS app3,c.link_id1 AS id3,c.link_id AS link3', |
| 432 | - 'where'=>'a.link_app1='.self::$db->quote($app).' AND a.link_app2='.self::$db->quote($target_app). |
|
| 433 | - (!$target_id ? '' : self::$db->expression(self::TABLE,' AND a.',array('link_id2' => $target_id))), |
|
| 434 | - 'join'=>" a |
|
| 432 | + 'where'=>'a.link_app1='.self::$db->quote($app).' AND a.link_app2='.self::$db->quote($target_app). |
|
| 433 | + (!$target_id ? '' : self::$db->expression(self::TABLE,' AND a.',array('link_id2' => $target_id))), |
|
| 434 | + 'join'=>" a |
|
| 435 | 435 | JOIN $table b ON a.link_id1=b.link_id2 AND a.link_app1=b.link_app2 |
| 436 | 436 | JOIN $table c ON a.link_id2=c.link_id2 AND a.link_app2=c.link_app2 AND a.link_id!=c.link_id AND c.link_app1=b.link_app1 AND c.link_id1=b.link_id1", |
| 437 | 437 | ), |
@@ -1367,14 +1367,14 @@ |
||
| 1367 | 1367 | } |
| 1368 | 1368 | |
| 1369 | 1369 | /** |
| 1370 | - * Get a default list of columns to search |
|
| 1371 | - * This is to be used as a fallback, for when the extending class does not define |
|
| 1372 | - * $this->columns_to_search. All the columns are considered, and any with $skip_columns_with in |
|
| 1373 | - * their name are discarded because these columns are expected to be foreign keys or other numeric |
|
| 1374 | - * values with no meaning to the user. |
|
| 1375 | - * |
|
| 1376 | - * @return array of column names |
|
| 1377 | - */ |
|
| 1370 | + * Get a default list of columns to search |
|
| 1371 | + * This is to be used as a fallback, for when the extending class does not define |
|
| 1372 | + * $this->columns_to_search. All the columns are considered, and any with $skip_columns_with in |
|
| 1373 | + * their name are discarded because these columns are expected to be foreign keys or other numeric |
|
| 1374 | + * values with no meaning to the user. |
|
| 1375 | + * |
|
| 1376 | + * @return array of column names |
|
| 1377 | + */ |
|
| 1378 | 1378 | protected function get_default_search_columns() |
| 1379 | 1379 | { |
| 1380 | 1380 | $skip_columns_with = array('_id', 'modified', 'modifier', 'status', 'cat_id', 'owner'); |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | $zip = NULL; |
| 382 | 382 | $_f = NULL; |
| 383 | 383 | if($type == 'zip') |
| 384 | - { |
|
| 384 | + { |
|
| 385 | 385 | // has already been verified to be available in fopen_backup |
| 386 | 386 | $zip = new ZipArchive; |
| 387 | 387 | if(($zip->open($filename)) !== TRUE) |
@@ -719,9 +719,9 @@ discard block |
||
| 719 | 719 | while($file = $list[0]) |
| 720 | 720 | { |
| 721 | 721 | if(is_dir($file) && $file != '.' && $file != '..') |
| 722 | - self::remove_dir_content($dir.'/'.$file); |
|
| 722 | + self::remove_dir_content($dir.'/'.$file); |
|
| 723 | 723 | if(is_file($file) && $file != '.' && $file != '..') |
| 724 | - unlink($dir.'/'.$file); |
|
| 724 | + unlink($dir.'/'.$file); |
|
| 725 | 725 | array_shift($list); |
| 726 | 726 | } |
| 727 | 727 | //rmdir($dir); // dont remove own dir |
@@ -967,8 +967,8 @@ discard block |
||
| 967 | 967 | echo '<center>'.lang("Cant open %1, needs ZipArchive", $name)."<br>\n".'</center>'; |
| 968 | 968 | } |
| 969 | 969 | |
| 970 | - fclose($f); |
|
| 971 | - if (file_exists($name)) unlink($name); |
|
| 970 | + fclose($f); |
|
| 971 | + if (file_exists($name)) unlink($name); |
|
| 972 | 972 | return TRUE; |
| 973 | 973 | } |
| 974 | 974 | // save files .... |