ICanBoogie
  • Documentation
  • API Reference
  • ActiveRecord 4.0.x
Namespaces
  • ICanBoogie
    • ActiveRecord
      • ActiveRecordCache
      • Driver
      • Property
      • Validate
        • Reader
        • Validator
        • ValidatorProvider
Classes
  • BelongsToRelation
  • Connection
  • ConnectionCollection
  • ConnectionOptions
  • HasManyRelation
  • Model
  • ModelCollection
  • ModelProvider
  • Query
  • Relation
  • RelationCollection
  • RelationNotDefined
  • Schema
  • SchemaColumn
  • Statement
  • Table
Interfaces
  • ActiveRecordCache
  • Driver
  • Exception
Exceptions
  • ActiveRecordClassNotValid
  • ConnectionAlreadyEstablished
  • ConnectionNotDefined
  • ConnectionNotEstablished
  • DriverNotDefined
  • ModelAlreadyInstantiated
  • ModelNotDefined
  • RecordNotFound
  • RecordNotValid
  • ScopeNotDefined
  • StatementInvocationFailed
  • StatementNotValid
  • UnableToSetFetchMode

Class ScopeNotDefined

Exception thrown in attempt to obtain a scope that is not defined.

Exception implements Throwable
┗ LogicException
┗ ICanBoogie\ActiveRecord\ScopeNotDefined implements ICanBoogie\ActiveRecord\Exception uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie\ActiveRecord
Located at ActiveRecord/ScopeNotDefined.php

Methods summary

protected get_scope_name( void )
protected get_model( void )
public __construct( string $scope_name, ICanBoogie\ActiveRecord\Model $model, integer $code = 500, ICanBoogie\ActiveRecord\Exception $previous = null )

Initializes the $scope_name and $model properties.

Initializes the $scope_name and $model properties.

Parameters

$scope_name
Name of the scope.
$model
Model on which the scope was invoked.
$code
Default to 404.
$previous
Previous exception.

Overrides

Exception::__construct
protected format_message( string $scope_name, ICanBoogie\ActiveRecord\Model $model ) : string

Formats exception message.

Formats exception message.

Parameters

$scope_name
$model

Returns

string

Methods inherited from Exception

__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Properties summary

Properties inherited from Exception

$code, $file, $line, $message

Magic properties

public read-only $scope_name : string
public read-only $model : ICanBoogie\ActiveRecord\Model
ActiveRecord 4.0.x – Check on GitHub – API documentation generated by ApiGen