generated from yii2-extensions/template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe4bb90
commit 38e6ecc
Showing
60 changed files
with
2,765 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yii\Blog\Domain\Category; | ||
|
||
use yii\db\ActiveQuery; | ||
use yii\db\ActiveRecordInterface; | ||
|
||
/** | ||
* Defines the contract for the Category class. | ||
* | ||
* @property int $id The ID. | ||
* @property string $title The title. | ||
* @property string $description The description. | ||
* @property string $image_file The image file. | ||
* @property int $order_num The order number. | ||
* @property string $slug The slug. | ||
* @property int $tree The tree. | ||
* @property int $lft The left. | ||
* @property int $rgt The right. | ||
* @property int $depth The depth. | ||
* @property int $status The status. | ||
*/ | ||
interface CategoryInterface extends ActiveRecordInterface | ||
{ | ||
/** | ||
* Returns the relational query object for fetching posts related to this category. | ||
* | ||
* @return ActiveQuery The relational query object. | ||
*/ | ||
public function getPost(): ActiveQuery; | ||
|
||
/** | ||
* Returns the relational query object for fetching SEO-related information for this category. | ||
* | ||
* @return ActiveQuery The relational query object. | ||
*/ | ||
public function getSeo(): ActiveQuery; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yii\Blog\Domain\Post; | ||
|
||
use Yii\Blog\Domain\Tag\Tag; | ||
use yii\db\ActiveQuery; | ||
use yii\db\ActiveRecordInterface; | ||
|
||
/** | ||
* Defines the contract for the Post class. | ||
* | ||
* @property int $id The ID. | ||
* @property int $category_id The category ID. | ||
* @property string $title The title. | ||
* @property string $content The content. | ||
* @property string $content_short The short content. | ||
* @property string $image_file The image file. | ||
* @property string $slug The slug. | ||
* @property string $date The date. | ||
* @property int $views The views. | ||
* @property string $lang The language. | ||
* @property int $status The status. | ||
* | ||
* Defined relations: | ||
* @property Tag[] $tags The tags. | ||
*/ | ||
interface PostInterface extends ActiveRecordInterface | ||
{ | ||
/** | ||
* Returns the relational query object for fetching category-related information for this post. | ||
* | ||
* @return ActiveQuery The relational query object. | ||
*/ | ||
public function getCategory(): ActiveQuery; | ||
|
||
/** | ||
* Returns the relational query object for fetching SEO-related information for this post. | ||
* | ||
* @return ActiveQuery The relational query object. | ||
*/ | ||
public function getSeo(): ActiveQuery; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yii\Blog\Domain\Seo; | ||
|
||
use yii\db\ActiveRecordInterface; | ||
|
||
/** | ||
* Defines the contract for the Seo class. | ||
* | ||
* @property int $id The ID. | ||
* @property string $class The class name of the item. | ||
* @property int $item_id The ID of the item. | ||
* @property string $h1 The H1. | ||
* @property string $title The title. | ||
* @property string $keywords The keywords. | ||
* @property string $description The description. | ||
*/ | ||
interface SeoInterface extends ActiveRecordInterface | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yii\Blog\Domain\Tag; | ||
|
||
use yii\db\ActiveRecordInterface; | ||
|
||
/** | ||
* Defines the contract for the Tag class. | ||
* | ||
* @property string $id The ID. | ||
* @property string $name The name. | ||
* @property int $frequency The frequency. | ||
*/ | ||
interface TagInterface extends ActiveRecordInterface | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.