You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					30 lines
				
				1019 B
			
		
		
			
		
	
	
					30 lines
				
				1019 B
			| 
								 
											12 years ago
										 
									 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * @link http://www.yiiframework.com/
							 | 
						||
| 
								 | 
							
								 * @copyright Copyright (c) 2008 Yii Software LLC
							 | 
						||
| 
								 | 
							
								 * @license http://www.yiiframework.com/license/
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											12 years ago
										 
									 | 
							
								namespace yii\db;
							 | 
						||
| 
								 
											12 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * ActiveRelationInterface defines the common interface to be implemented by active record relation classes.
							 | 
						||
| 
								 | 
							
								 *
							 | 
						||
| 
								 
											12 years ago
										 
									 | 
							
								 * A class implementing this interface should also use [[ActiveRelationTrait]].
							 | 
						||
| 
								 | 
							
								 *
							 | 
						||
| 
								 
											12 years ago
										 
									 | 
							
								 * @author Qiang Xue <qiang.xue@gmail.com>
							 | 
						||
| 
								 | 
							
								 * @author Carsten Brandt <mail@cebe.cc>
							 | 
						||
| 
								 | 
							
								 * @since 2.0
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								interface ActiveRelationInterface extends ActiveQueryInterface
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
									/**
							 | 
						||
| 
								 | 
							
									 * Specifies the relation associated with the pivot table.
							 | 
						||
| 
								 | 
							
									 * @param string $relationName the relation name. This refers to a relation declared in [[primaryModel]].
							 | 
						||
| 
								 | 
							
									 * @param callable $callable a PHP callback for customizing the relation associated with the pivot table.
							 | 
						||
| 
								 | 
							
									 * Its signature should be `function($query)`, where `$query` is the query to be customized.
							 | 
						||
| 
								 | 
							
									 * @return static the relation object itself.
							 | 
						||
| 
								 | 
							
									 */
							 | 
						||
| 
								 | 
							
									public function via($relationName, $callable = null);
							 | 
						||
| 
								 | 
							
								}
							 |