src/ELearn/relations.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
return array(
    'ELearn_Domain' => array(
        'relate_to' => array()
    ),
    'ELearn_Topic' => array(
        'relate_to' => array(
            'ELearn_Domain',
            'User'
        )
    ),
    'ELearn_Course' => array(
        'relate_to' => array(
            'ELearn_Topic'
        ),
        'relate_to_many' => array(
            'User'
        )
    ),
    'ELearn_Grade' => array(
        'relate_to_many' => array(
            'ELearn_Course'
        )
    ),
    'ELearn_Lesson' => array(
        'relate_to' => array(
            'ELearn_Course'
        )
    ),
    'ELearn_Part' => array(
        'relate_to' => array(
            'ELearn_Lesson'
        ),
        'relate_to_many' => array(
            'CMS_Content'
        )
    ),
    'ELearn_PartHistory' => array(
        'relate_to' => array(
            'ELearn_Part',
            'User'
        )
    ),
    'ELearn_Comment' => array(
        'relate_to' => array(
            'User'
        )
    ),
    'ELearn_Vote' => array(
        'relate_to' => array(
            'ELearn_Comment',
            'User'
        )
    )

);