예제 #1
0
파일: Data.php 프로젝트: mykitty/jyotish
 /**
  * Calculation of rising and setting.
  * 
  * @param string $graha Graha key (optional)
  * @param null|array $options Options to set (optional)
  * @return \Jyotish\Base\Data
  */
 public function calcRising($graha = Graha::KEY_SY, array $options = null)
 {
     $dataRising = $this->Ganita->setData($this)->getRising($graha, $options);
     $this->data[self::BLOCK_RISING] = $dataRising;
     return $this;
 }
예제 #2
0
파일: Data.php 프로젝트: kunjara/jyotish
 /**
  * Calculation of rising and setting.
  * 
  * @param string $graha Graha key (optional)
  * @param null|array $options Options to set (optional)
  * @return Data
  * @throws Exception\UnderflowException
  */
 public function calcRising($graha = Graha::KEY_SY, array $options = null)
 {
     if (is_null($this->Ganita)) {
         throw new Exception\UnderflowException("Ganita is not setted.");
     }
     $dataRising = $this->Ganita->setData($this)->getRising($graha, $options);
     $this->data[self::BLOCK_RISING] = $dataRising;
     return $this;
 }