Index: branches/5.2.x/core/kernel/utility/temp_handler.php =================================================================== diff -u -N -r16468 -r16513 --- branches/5.2.x/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 16468) +++ branches/5.2.x/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 16513) @@ -1,6 +1,6 @@ FinalRefs[ $tables['TableName'] ] = $tables['TableId']; // don't forget to add main table to FinalRefs too + /** @var Array $sub_items */ $sub_items = $this->Application->getUnitOption($prefix, 'SubItems', Array ()); - /* @var $sub_items Array */ if ( is_array($sub_items) ) { foreach ($sub_items as $prefix) { @@ -250,8 +250,8 @@ $this->FinalRefs[ $tmp['TableName'] . $tmp['Constrain'] ] = $tmp['TableId']; } + /** @var Array $sub_items */ $sub_items = $this->Application->getUnitOption($prefix, 'SubItems', Array ()); - /* @var $sub_items Array */ if ( is_array($sub_items) ) { foreach ($sub_items as $prefix) { @@ -275,8 +275,8 @@ $special .= '-item'; } + /** @var kCatDBItem $object */ $object = $this->Application->recallObject($prefix.'.'.$special, $prefix, Array('skip_autoload' => true, 'parent_event' => $this->parentEvent)); - /* @var $object kCatDBItem */ $object->PopulateMultiLangFields(); @@ -388,8 +388,9 @@ //recalling by different name, because we may get kDBList, if we recall just by prefix $recall_prefix = $prefix_special . ($special ? '' : '.') . '-item'; + + /** @var kDBItem $object */ $object = $this->Application->recallObject($recall_prefix, $prefix, Array ('skip_autoload' => true, 'parent_event' => $this->parentEvent)); - /* @var $object kDBItem */ foreach ($ids as $id) { $object->Load($id); @@ -747,8 +748,8 @@ static $connection = null; if (!isset($connection)) { + /** @var kDBConnection $connection */ $connection = $this->Application->makeClass( 'kDBConnection', Array (SQL_TYPE, Array ($this->Application, 'handleSQLError')) ); - /* @var $connection kDBConnection */ $connection->debugMode = $this->Application->isDebugMode(); $connection->Connect(SQL_SERVER, SQL_USER, SQL_PASS, SQL_DB);