plugins/finder/categories/categories.php
public function onFinderAfterSave($context, $row, $isNew)
	{
		// We only want to handle categories here.
		if ($context == 'com_categories.category')
		{
			// Check if the access levels are different.
			if (!$isNew && $this->old_access != $row->access)
			{
				// Process the change.
				$this->itemAccessChange($row);
			}

			// Reindex the category item.
			$this->reindex($row->id);

			// Check if the parent access level is different.
			if (!$isNew && $this->old_cataccess != $row->access)
			{
				$this->categoryAccessChange($row);
			}
		}

		return true;
	}
public function onFinderAfterSave($context, $row, $isNew)
	{
		// We only want to handle categories here.
		if ($context == 'com_categories.category')
		{
			// Check if the access levels are different.
			if (!$isNew && $this->old_access != $row->access)
			{
				// Process the change.
				$this->itemAccessChange($row);
			}

			// Reindex the category item.
			$this->reindex($row->id);

			// Check if the parent access level is different.
			if (!$isNew && $this->old_cataccess != $row->access)
			{
				$this->categoryAccessChange($row);
			}
		}

		return true;
	}
public function onFinderAfterSave ( $ context , $ row , $ isNew ) { // We only want to handle categories here. if ( $ context == 'com_categories.category' ) { // Check if the access levels are different. if ( ! $ isNew && $ this -> old_access != $ row -> access ) { // Process the change. $ this -> itemAccessChange ( $ row ) ; } // Reindex the category item. $ this -> reindex ( $ row -> id ) ; // Check if the parent access level is different. if ( ! $ isNew && $ this -> old_cataccess != $ row -> access ) { $ this -> categoryAccessChange ( $ row ) ; } } return true ; }
Smart Search after save content method.
Reindexes the link information for a category that has been saved.
It also makes adjustments if the access level of the category has changed.

@param   string   $context  The context of the category passed to the plugin.
@param   JTable   $row      A JTable object.
@param   boolean  $isNew    True if the category has just been created.

@return  boolean  True on success.

@since   2.5
@throws  Exception on database error.
Smart Search after save content method . Reindexes the link information for a category that has been saved . It also makes adjustments if the access level of the category has changed .