<?php 

//var_dump( __FILE__ );

class yLearningEngine {
  
  // declaracion
  public $oYApp = null;

  function __construct( $aParameters = null ) {
    //var_dump( "yLearningEngine.__construct" );
    $this->sTitu = "Sistema - Motor de Aprendizaje";
    $this->sFiltLabl = "Sistema - Motor de Aprendizaje";
    $this->init();
  }

  public function init( $aParameters = null ) {
    //var_dump( "yLearningEngine.init" );
    global $oYApp;
    $this->oYApp = $oYApp;
  }

  public function getMapping ( $aParameters = null ) {
    $sView = $this->a_view['s_name'];
    $sModu = $this->a_view['s_folder'];
    $aResu = array();

    // mapeo de propiedades no identificadas
    include_once( FMWK_CLIE_DIRE . "project/mapping.php" );
    if ( isset( $aMapping[ $sModu ] ) )
      if ( isset( $aMapping[ $sModu ][ $sView] ) )
        $aResu = $aMapping[ $sModu ][ $sView];

    return $aResu;  
  }

}