Updates to duplicate/remove displays, remove deprecated display functions
This commit is contained in:
@@ -322,67 +322,6 @@ abstract class Catalog extends Model
|
||||
return trim(chunk_split(sprintf("%0{$depth}s",$this->id),$sep,'/'),'/');
|
||||
}
|
||||
|
||||
/**
|
||||
* Return HTML Checkbox for duplicate
|
||||
* @deprecated use a component
|
||||
*/
|
||||
public function getDuplicateCheckboxAttribute()
|
||||
{
|
||||
return $this->HTMLCheckbox('duplicate',$this->id,$this->duplicate);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return HTML Checkbox for flagged
|
||||
* @deprecated use a component
|
||||
*/
|
||||
public function getFlagCheckboxAttribute()
|
||||
{
|
||||
return $this->HTMLCheckbox('flag',$this->id,$this->flag);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return HTML Checkbox for ignore
|
||||
* @deprecated use a component
|
||||
*/
|
||||
public function getIgnoreCheckboxAttribute()
|
||||
{
|
||||
return $this->HTMLCheckbox('ignore_duplicate',$this->id,$this->ignore_duplicate);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use a component
|
||||
*/
|
||||
public function getDuplicateTextAttribute()
|
||||
{
|
||||
return $this->TextTrueFalse($this->duplicate);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use a component
|
||||
*/
|
||||
public function getFlagTextAttribute()
|
||||
{
|
||||
return $this->TextTrueFalse($this->flag);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return HTML Checkbox for remove
|
||||
* @deprecated use a component
|
||||
*/
|
||||
public function getRemoveCheckboxAttribute()
|
||||
{
|
||||
return $this->HTMLCheckbox('remove',$this->id,$this->remove);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an HTML checkbox
|
||||
* @deprecated use a component
|
||||
*/
|
||||
protected function HTMLCheckbox($name,$id,$value)
|
||||
{
|
||||
return sprintf('<input type="checkbox" name="%s[%s]" value="1"%s>',$name,$id,$value ? ' checked="checked"' : '');
|
||||
}
|
||||
|
||||
/**
|
||||
* Set values from the media object
|
||||
*
|
||||
@@ -558,12 +497,6 @@ abstract class Catalog extends Model
|
||||
return $this->filename !== $this->file_name();
|
||||
}
|
||||
|
||||
/** @deprecated is this really needed? */
|
||||
private function TextTrueFalse($value): string
|
||||
{
|
||||
return $value ? 'TRUE' : 'FALSE';
|
||||
}
|
||||
|
||||
/**
|
||||
* Find duplicate images based on some attributes of the current image
|
||||
*/
|
||||
|
Reference in New Issue
Block a user