diff --git a/app/Http/Requests/Request.php b/app/Http/Requests/Request.php deleted file mode 100644 index e723859..0000000 --- a/app/Http/Requests/Request.php +++ /dev/null @@ -1,13 +0,0 @@ -input(); - } - -} diff --git a/app/Services/Form/BaseFormHelper.php b/app/Services/Form/BaseFormHelper.php deleted file mode 100644 index a5ea1ca..0000000 --- a/app/Services/Form/BaseFormHelper.php +++ /dev/null @@ -1,50 +0,0 @@ -repository->all(); - - return $this->convertToSelectList($includeNull, $models); - } - - public function getSuggestionsForAutoComplete($query) - { - $models = $this->repository->findByFilter( array( 'name' => $query ) ); - - return $this->convertToAutoComplete( $models ); - } - - protected function convertToSelectList($includeNull, $models) - { - $results = array(); - if( $includeNull ) { - $results[ 0 ] = ''; - } - - foreach( $models as $model ) { - $results[ $model->id ] = $model->name; - } - - return $results; - } - - protected function convertToAutoComplete($models) - { - $results = array(); - foreach( $models as $model ) { - $results[] = array( - 'data' => $model->id, - 'value' => $model->name - ); - } - - return $results; - } - -} \ No newline at end of file diff --git a/app/Services/Html/BaseViewFactory.php b/app/Services/Html/BaseViewFactory.php deleted file mode 100644 index bef6bb3..0000000 --- a/app/Services/Html/BaseViewFactory.php +++ /dev/null @@ -1,51 +0,0 @@ - '', - 'messageValues' => array() - ); - - - public function notifyUser($type, $messages, $translate = true) - { - if( $translate ) { - $messages = $this->translateMessages($messages); - } - - $this->addParameter('messageType', $type); - $this->addParameter('messageValues', $messages); - } - - protected function addParameter($key, $value) - { - $this->parameters[$key] = $value; - } - - protected function makeView($view) - { - if( Auth::check() ) { - $this->addParameter( 'activeUser', Auth::user() ); - } - - return View::make( $view, $this->parameters ); - } - - protected function translateMessages($messages) - { - $results = array(); - foreach( $messages as $message ) { - array_push( $results, Translate::message($message) ); - } - - return $results; - } - -} - diff --git a/app/Services/Input/BaseInputHelper.php b/app/Services/Input/BaseInputHelper.php deleted file mode 100644 index 4d65edc..0000000 --- a/app/Services/Input/BaseInputHelper.php +++ /dev/null @@ -1,22 +0,0 @@ -attributesToArray(); - } - - public function getInputForSearch($input) - { - if( array_key_exists('_token', $input) ) { - unset( $input[ '_token' ] ); - } - - return $input; - } - -} \ No newline at end of file