Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove unnecessary interface includes #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions fields/field.textbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@

if (!defined('__IN_SYMPHONY__')) die('<h2>Symphony Error</h2><p>You cannot directly access this file</p>');

require_once TOOLKIT . '/class.xsltprocess.php';
require_once EXTENSIONS . '/textboxfield/extension.driver.php';
require_once FACE . '/interface.exportablefield.php';
require_once FACE . '/interface.importablefield.php';

/**
* An enhanced text input field.
Expand Down Expand Up @@ -739,6 +736,17 @@ public function prepareExportValue($data, $mode, $entry_id = null) {
public function fetchFilterableOperators()
{
return array(
array(
'title' => 'contains',
'filter' => 'contains:',
'help' => __('Find values that contain the given string.')
),
array(
'title' => 'not-contains',
'filter' => 'not-contains:',
'help' => __('Find values that do not contain the given string.')
),

array(
'title' => 'boolean',
'filter' => 'boolean:',
Expand All @@ -765,17 +773,6 @@ public function fetchFilterableOperators()
))
),

array(
'title' => 'contains',
'filter' => 'contains:',
'help' => __('Find values that contain the given string.')
),
array(
'title' => 'not-contains',
'filter' => 'not-contains:',
'help' => __('Find values that do not contain the given string.')
),

array(
'title' => 'starts-with',
'filter' => 'starts-with:',
Expand Down