Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
test-project
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Junaid Rahman pv
test-project
Commits
2740d958
Commit
2740d958
authored
Aug 31, 2016
by
jomon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code review changes
parent
fd16ddfb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
Category.php
common/models/Category.php
+2
-0
CategoryQuery.php
common/models/query/CategoryQuery.php
+34
-0
No files found.
common/models/Category.php
View file @
2740d958
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
namespace
common\models
;
namespace
common\models
;
use
Yii
;
use
Yii
;
use
common\models\query\CategoryQuery
;
/**
/**
* This is the model class for table "{{%category}}".
* This is the model class for table "{{%category}}".
...
@@ -24,6 +25,7 @@ class Category extends \yii\db\ActiveRecord
...
@@ -24,6 +25,7 @@ class Category extends \yii\db\ActiveRecord
const
STATUS_ACTIVE
=
1
;
const
STATUS_ACTIVE
=
1
;
const
STATUS_NOT_ACTIVE
=
2
;
const
STATUS_NOT_ACTIVE
=
2
;
const
STATUS_DELETED
=
3
;
const
STATUS_DELETED
=
3
;
/**
/**
* @inheritdoc
* @inheritdoc
*/
*/
...
...
common/models/query/CategoryQuery.php
0 → 100644
View file @
2740d958
<?php
namespace
common\models\query
;
/**
* This is the ActiveQuery class for [[Category]].
*
* @see Category
*/
class
CategoryQuery
extends
\yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* @inheritdoc
* @return Category[]|array
*/
public
function
all
(
$db
=
null
)
{
return
parent
::
all
(
$db
);
}
/**
* @inheritdoc
* @return Category|array|null
*/
public
function
one
(
$db
=
null
)
{
return
parent
::
one
(
$db
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment