Class lispa\amos\documenti\models\search\DocumentiSearch
Class DocumentiSearch
DocumentiSearch represents the model behind the search form about lispa\amos\documenti\models\Documenti
.
Public Properties
Protected Properties
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
__shortText() | Parse string and return limited one | lispa\amos\core\record\Record |
createRelationQuery() | Creates a query instance for has-one or has-many relation. |
yii\db\BaseActiveRecord |
deleteInternal() | Deletes an ActiveRecord without considering transaction. | yii\db\ActiveRecord |
findByCondition() | Finds ActiveRecord instance(s) by the given condition. | yii\db\ActiveRecord |
insertInternal() | Inserts an ActiveRecord into DB without considering transaction. | yii\db\ActiveRecord |
resolveFields() | Determines which fields can be returned by toArray(). | yii\base\ArrayableTrait |
switchOffNotifications() | Switch off notifications | lispa\amos\notificationmanager\record\NotifyRecord |
updateInternal() | yii\db\BaseActiveRecord |
Events
Event | Type | Description | Defined By |
---|---|---|---|
EVENT_AFTER_DELETE | yii\base\Event | An event that is triggered after a record is deleted. | yii\db\BaseActiveRecord |
EVENT_AFTER_FIND | yii\base\Event | An event that is triggered after the record is created and populated with query result. | yii\db\BaseActiveRecord |
EVENT_AFTER_INSERT | yii\db\AfterSaveEvent | An event that is triggered after a record is inserted. | yii\db\BaseActiveRecord |
EVENT_AFTER_REFRESH | yii\base\Event | An event that is triggered after a record is refreshed. (available since version 2.0.8) | yii\db\BaseActiveRecord |
EVENT_AFTER_UPDATE | yii\db\AfterSaveEvent | An event that is triggered after a record is updated. | yii\db\BaseActiveRecord |
EVENT_AFTER_VALIDATE | yii\base\Event | An event raised at the end of validate() | yii\base\Model |
EVENT_BEFORE_DELETE | yii\base\ModelEvent | An event that is triggered before deleting a record. | yii\db\BaseActiveRecord |
EVENT_BEFORE_INSERT | yii\base\ModelEvent | An event that is triggered before inserting a record. | yii\db\BaseActiveRecord |
EVENT_BEFORE_UPDATE | yii\base\ModelEvent | An event that is triggered before updating a record. | yii\db\BaseActiveRecord |
EVENT_BEFORE_VALIDATE | yii\base\ModelEvent | An event raised at the beginning of validate(). | yii\base\Model |
EVENT_INIT | yii\base\Event | An event that is triggered when the record is initialized via init(). | yii\db\BaseActiveRecord |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
DOCUMENTI_WORKFLOW | 'DocumentiWorkflow' | lispa\amos\documenti\models\Documenti | |
DOCUMENTI_WORKFLOW_STATUS_BOZZA | 'DocumentiWorkflow/BOZZA' | lispa\amos\documenti\models\Documenti | |
DOCUMENTI_WORKFLOW_STATUS_DAVALIDARE | 'DocumentiWorkflow/DAVALIDARE' | lispa\amos\documenti\models\Documenti | |
DOCUMENTI_WORKFLOW_STATUS_NONVALIDATO | 'DocumentiWorkflow/NONVALIDATO' | lispa\amos\documenti\models\Documenti | |
DOCUMENTI_WORKFLOW_STATUS_VALIDATO | 'DocumentiWorkflow/VALIDATO' | lispa\amos\documenti\models\Documenti | |
IS_DOCUMENT | 0 | lispa\amos\documenti\models\Documenti | |
IS_FOLDER | 1 | lispa\amos\documenti\models\Documenti | |
OP_ALL | 7 | All three operations: insert, update, delete. This is a shortcut of the expression: OP_INSERT | OP_UPDATE | OP_DELETE. | yii\db\ActiveRecord |
OP_DELETE | 4 | The delete operation. This is mainly used when overriding transactions() to specify which operations are transactional. | yii\db\ActiveRecord |
OP_INSERT | 1 | The insert operation. This is mainly used when overriding transactions() to specify which operations are transactional. | yii\db\ActiveRecord |
OP_UPDATE | 2 | The update operation. This is mainly used when overriding transactions() to specify which operations are transactional. | yii\db\ActiveRecord |
SCENARIO_CREATE | 'document_create' | Create Document scenario | lispa\amos\documenti\models\Documenti |
SCENARIO_CREATE_HIDE_PUBBLICATION_DATE | 'scenario_create_hide_pubblication_date' | lispa\amos\documenti\models\Documenti | |
SCENARIO_DEFAULT | 'default' | The name of the default scenario. | yii\base\Model |
SCENARIO_DETAILS | 'scenario_details' | lispa\amos\documenti\models\Documenti | |
SCENARIO_DETAILS_HIDE_PUBBLICATION_DATE | 'scenario_details_hide_pubblication_date' | Secenarios for hide pubblication date | lispa\amos\documenti\models\Documenti |
SCENARIO_FAKE_REQUIRED | 'scenario_fake_required' | lispa\amos\core\record\Record | |
SCENARIO_FOLDER | 'scenario_folder' | lispa\amos\documenti\models\Documenti | |
SCENARIO_INTRODUCTION | 'scenario_introduction' | All the scenarios listed below are for the wizard. | lispa\amos\documenti\models\Documenti |
SCENARIO_PUBLICATION | 'scenario_publication' | lispa\amos\documenti\models\Documenti | |
SCENARIO_SUMMARY | 'scenario_summary' | lispa\amos\documenti\models\Documenti | |
SCENARIO_UPDATE | 'document_update' | lispa\amos\documenti\models\Documenti | |
SCENARIO_UPDATE_HIDE_PUBBLICATION_DATE | 'scenario_update_hide_pubblication_date' | lispa\amos\documenti\models\Documenti |
Property Details
Method Details
public void __construct ( array $config = [] ) | ||
$config |
Documents base search: all documents matching search parameters and not deleted.
public yii\db\ActiveQuery baseSearch ( $params ) | ||
$params | array | Search parameters |
public lispa\amos\core\record\SearchResult convertToSearchResult ( $model ) | ||
$model | object | The model to convert into SearchResult |
Use to add Join condition/add other filtering condition
public void getSearchQuery ( $query ) | ||
$query | yii\db\ActiveQuery |
public yii\db\ActiveQuery highlightedAndHomepageDocumentiQuery ( $params ) | ||
$params | array |
public yii\db\ActiveQuery homepageDocumentsQuery ( $params ) | ||
$params | array |
public void init ( ) |
Search last documents in validated status, generally the limit is set to 3 (by last documents graphic widget)
public yii\data\ActiveDataProvider lastDocuments ( $params, $limit = null ) | ||
$params | array | Array of search parameters |
$limit | integer|null |
public void rules ( ) |
Documents search method
public yii\data\ActiveDataProvider search ( $params, $queryType = null, $limit = null, $onlyDratfs = false ) | ||
$params | array | |
$queryType | string | |
$limit | integer|null | |
$onlyDratfs |
public yii\data\ActiveDataProvider searchAdminAll ( $params, $limit = null ) | ||
$params | ||
$limit | null |
This method define the search default order.
public yii\data\BaseDataProvider searchDefaultOrder ( $dataProvider ) | ||
$dataProvider | yii\data\BaseDataProvider |
public void searchFieldsGlobalSearch ( ) |
public void searchFieldsLike ( ) |
public void searchFieldsMatch ( ) |
Search method useful to retrieve documents in validated status with both flags primo_piano and in_evidenza true
public yii\data\ActiveDataProvider searchHighlightedAndHomepageDocumenti ( $params ) | ||
$params | array | Array di parametri |
Search method useful to retrieve documents in validated status with flag primo_piano = true
public yii\data\ActiveDataProvider searchHomepageDocuments ( $params ) | ||
$params | array | Array di parametri |
Search the Documents created by the logged user
public yii\data\ActiveDataProvider searchOwnDocuments ( $params, $limit = null ) | ||
$params | array | Array di parametri per la ricerca |
$limit | integer |
Search method useful to retrieve all validated documenti (based on publication rule and visibility).
public yii\data\ActiveDataProvider searchOwnInterest ( $params, $limit = null ) | ||
$params | array | Array of get parameters for search |
$limit | integer|null |
Search documents to validate based on cwh rules if cwh is active, all documents in 'to validate status' otherwise
public yii\data\ActiveDataProvider searchToValidateDocuments ( $params, $limit = null ) | ||
$params | array | Array di parametri per la ricerca |
$limit | integer |
public yii\data\ActiveDataProvider searchVersions ( $params ) | ||
$params | array |