public function setSourceOptions($value, $dc)
	{
		$db = Database::getInstance();
		
		if ($value == 'video' || $value == 'audio')
		{
			if (!$dc->activeRecord->multiSource)
			{
				// Change multiSource in database
				$db->prepare("UPDATE " . $this->table . " SET multiSource=? WHERE id=?")
				   ->execute(1, $dc->activeRecord->id);
			}
			if ($dc->activeRecord->sortBy != 'html5media')
			{
				// Change sortBy in database
				$db->prepare("UPDATE " . $this->table . " SET sortBy=? WHERE id=?")
				   ->execute('html5media', $dc->activeRecord->id);
			}
			if ($dc->activeRecord->canChangeSortBy)
			{
				// Change canChangeSortBy in database
				$db->prepare("UPDATE " . $this->table . " SET canChangeSortBy=? WHERE id=?")
				   ->execute(0, $dc->activeRecord->id);
			}
		}
		
		return $value;
	}
public function setSourceOptions($value, $dc)
	{
		$db = Database::getInstance();
		
		if ($value == 'video' || $value == 'audio')
		{
			if (!$dc->activeRecord->multiSource)
			{
				// Change multiSource in database
				$db->prepare("UPDATE " . $this->table . " SET multiSource=? WHERE id=?")
				   ->execute(1, $dc->activeRecord->id);
			}
			if ($dc->activeRecord->sortBy != 'html5media')
			{
				// Change sortBy in database
				$db->prepare("UPDATE " . $this->table . " SET sortBy=? WHERE id=?")
				   ->execute('html5media', $dc->activeRecord->id);
			}
			if ($dc->activeRecord->canChangeSortBy)
			{
				// Change canChangeSortBy in database
				$db->prepare("UPDATE " . $this->table . " SET canChangeSortBy=? WHERE id=?")
				   ->execute(0, $dc->activeRecord->id);
			}
		}
		
		return $value;
	}
public function setSourceOptions ( $ value , $ dc ) { $ db = Database :: getInstance ( ) ; if ( $ value == 'video' || $ value == 'audio' ) { if ( ! $ dc -> activeRecord -> multiSource ) { // Change multiSource in database $ db -> prepare ( "UPDATE " . $ this -> table . " SET multiSource=? WHERE id=?" ) -> execute ( 1 , $ dc -> activeRecord -> id ) ; } if ( $ dc -> activeRecord -> sortBy != 'html5media' ) { // Change sortBy in database $ db -> prepare ( "UPDATE " . $ this -> table . " SET sortBy=? WHERE id=?" ) -> execute ( 'html5media' , $ dc -> activeRecord -> id ) ; } if ( $ dc -> activeRecord -> canChangeSortBy ) { // Change canChangeSortBy in database $ db -> prepare ( "UPDATE " . $ this -> table . " SET canChangeSortBy=? WHERE id=?" ) -> execute ( 0 , $ dc -> activeRecord -> id ) ; } } return $ value ; }
Adjust multiSource and sortBy according to the source type

@param mixed         $value
@param DataContainer $dc

@return mixed
Adjust multiSource and sortBy according to the source type